Skip to content

Commit

Permalink
[CI] Updated deprecated actions (#983)
Browse files Browse the repository at this point in the history
* [CI] Updated deprecated actions

* [FIX] Update action zip upload

* [FIX] Fix yaml syntax
  • Loading branch information
payetvin authored Dec 7, 2022
1 parent 88e2138 commit beafa69
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ jobs:

- name: Publish assets
if: ${{ env.IS_RELEASE == 'true' }}
uses: alexellis/upload-assets@0.3.0
uses: alexellis/upload-assets@0.4.0
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ jobs:

- name: Publish assets
if: ${{ env.IS_RELEASE == 'true' }}
uses: alexellis/upload-assets@0.3.0
uses: alexellis/upload-assets@0.4.0
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/windows-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Get release
id: get_release
uses: bruceadams/get-release@v1.2.0
uses: bruceadams/get-release@v1.3.2


- name: Pre-requisites
Expand Down Expand Up @@ -186,12 +186,9 @@ jobs:
echo "ZIP_NAME=$ZIP_NAME" >> $GITHUB_ENV
- name: Upload .zip installer
uses: actions/[email protected]
uses: softprops/[email protected]
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: _build/${{env.ZIP_NAME}}
asset_name: ${{env.ZIP_NAME}}
asset_content_type: application/octet-stream
files: _build/${{env.ZIP_NAME}}

- name: Remove zip to free some disk space
shell: bash
Expand All @@ -215,9 +212,7 @@ jobs:
path: _build/_CPack_Packages/win64/NSIS/NSISOutput.log

- name: Upload NSIS installer
uses: actions/[email protected]
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: _build/${{env.NSIS_NAME}}
asset_name: ${{env.NSIS_NAME}}
asset_content_type: application/octet-stream
files: _build/${{env.NSIS_NAME}}

0 comments on commit beafa69

Please sign in to comment.