Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update action-gh-release to v2 #547

Merged
merged 3 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 12 additions & 20 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ jobs:
echo "ASSET_NAME=$_NAME" >> $GITHUB_ENV

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
cache-dependency-path: |
go.mod
go.sum
go-version: '^1.22'

- name: Install Dependencies
Expand Down Expand Up @@ -127,18 +130,15 @@ jobs:
echo "$(shasum -a 256 $FILE)"" sha256" >> $FILE.dgst
echo "$(shasum -a 512 $FILE)"" sha512" >> $FILE.dgst

# - name: Upload full source to Artifacts
# if: matrix.goarch == 'arm64'
# uses: actions/upload-artifact@v4
# with:
# name: dae-full-src.zip
# path: dae-full-src.zip

- name: Upload files to Artifacts
uses: actions/upload-artifact@v4
uses: nanoufo/action-upload-artifacts-and-release-assets@v2
with:
name: dae-${{ steps.get_filename.outputs.ASSET_NAME }}.zip
path: ./*.zip*
if-no-files-found: ignore
path: |
dae-${{ steps.get_filename.outputs.ASSET_NAME }}.zip
dae-${{ steps.get_filename.outputs.ASSET_NAME }}.zip.dgst
dae-full-src.zip
dae-full-src.zip.dgst

upload-release:
needs: [build]
Expand All @@ -156,16 +156,8 @@ jobs:
echo "Show files are going to upload..."
ls -lh | grep ".zip"

- name: Upload full source to GitHub release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ inputs.tag }}
files: |
dae-full-src.zip
prerelease: true

- name: Upload full source and artifacts to GitHub release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ inputs.tag }}
files: |
Expand Down
19 changes: 8 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,14 @@ jobs:
echo "$(shasum -a 512 $FILE)"" sha512" >> $FILE.dgst

- name: Upload files to Artifacts
uses: actions/upload-artifact@v4
uses: nanoufo/action-upload-artifacts-and-release-assets@v2
with:
name: dae-${{ steps.get_filename.outputs.ASSET_NAME }}.zip
path: ./*.zip*
if-no-files-found: ignore
path: |
dae-${{ steps.get_filename.outputs.ASSET_NAME }}.zip
dae-${{ steps.get_filename.outputs.ASSET_NAME }}.zip.dgst
dae-full-src.zip
dae-full-src.zip.dgst

upload-release:
needs: [build]
Expand All @@ -152,15 +156,8 @@ jobs:
echo "Show files are going to upload..."
ls -lh | grep ".zip"

- name: Upload full source to GitHub release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ inputs.tag }}
files: |
dae-full-src.zip

- name: Upload full source and artifacts to GitHub release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ inputs.tag }}
files: |
Expand Down