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

Release Build Updates and Fixes #860

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
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
31 changes: 28 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ jobs:
input: "~/.gradle/caches"
zipFilename: ${{steps.cachefn.outputs.FILEPATH}}

- name: "Generate SHA512 for executable"
shell: bash
run: |
./.github/workflows/sha.sh ${{ steps.exefn.outputs.FILEPATH }} ${{ runner.os }} 512 > ${{steps.exefn.outputs.FILEPATH}}.sha512

- name: "Generate SHA512 for plugins cache"
shell: bash
run: |
Expand Down Expand Up @@ -166,10 +171,11 @@ jobs:
echo "Attach staple"
xcrun stapler staple ${{ steps.exefn.outputs.FILEPATH }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Package
if-no-files-found: error
overwrite: true
path: |
${{ github.workspace }}/${{ steps.zipfn.outputs.FILEPATH }}
${{ github.workspace }}/${{ steps.zipfn.outputs.FILEPATH }}.sha512
Expand All @@ -180,14 +186,33 @@ jobs:
${{ github.workspace }}/${{ steps.cachefn.outputs.FILEPATH }}.sha512
${{ github.workspace }}/${{ steps.checksumsfn.outputs.FILEPATH }}
${{ github.workspace }}/${{ steps.checksumsfn.outputs.FILEPATH }}.sha512
retention-days: 90

- uses: dev-drprasad/[email protected]
# Note: to update the date of the release, it must be deleted and then recreated
if: github.event_name == 'release' || github.event_name == 'schedule'
with:
tag_name: build-${{ github.ref_name }}
delete_release: true
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: "Upload binaries to release"
uses: svenstaro/upload-release-action@v2
if: github.event_name == 'release' || github.event_name == 'schedule'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/${{ steps.basefn.outputs.FILEPATH }}*
tag: ${{ github.ref_name }}
tag: build-${{ github.ref_name }}
overwrite: true
file_glob: true
make_latest: false

- name: "Upload cache to release"
uses: svenstaro/upload-release-action@v2
if: github.event_name == 'release' || github.event_name == 'schedule'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: cache/*
tag: build-${{ github.ref_name }}
overwrite: true
file_glob: true
make_latest: false
Loading