diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index eaa621715..96e88835c 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -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 @@ -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] @@ -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: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e11160dc..caa59621e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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] @@ -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: |