Skip to content

Commit

Permalink
use softprops/action-gh-release@v2
Browse files Browse the repository at this point in the history
actions/create-release@v1 and actions/upload-release-asset@v1 are deprecated
  • Loading branch information
pavelfomin committed Jul 21, 2024
1 parent d781abc commit debd82b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
indent_style = space
indent_size = 4

# 2 space indentation
[*.{xml,html,json,y*ml}]
indent_size = 2
20 changes: 4 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,11 @@ jobs:
- name: create release
id: create_release
# if: github.event_name == 'push'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
uses: softprops/action-gh-release@v2
with:
name: ${{ steps.get_latest_tag.outputs.tag }}
tag_name: ${{ steps.get_latest_tag.outputs.tag }}
release_name: ${{ steps.get_latest_tag.outputs.tag }}
draft: false
prerelease: true

- name: upload release asset
id: upload-release-asset
# if: github.event_name == 'push'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/libs/asset.jar
asset_name: asset.jar
asset_content_type: application/zip
files: |
build/libs/*jar

0 comments on commit debd82b

Please sign in to comment.