update nightly releases
- use github sha for nightly tag - specifically provide commit to release action - build aarch64 flatpak on nightly release
This commit is contained in:
parent
3113de6bfe
commit
cf5460bd80
1 changed files with 29 additions and 19 deletions
48
.github/workflows/CI.yml
vendored
48
.github/workflows/CI.yml
vendored
|
|
@ -83,18 +83,23 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# set the release tag
|
# set the release tag
|
||||||
|
COMMIT=${{ github.sha }}
|
||||||
if [[ $GITHUB_REF == refs/heads/master ]]; then
|
if [[ $GITHUB_REF == refs/heads/master ]]; then
|
||||||
TAG="${{ needs.check_changelog.outputs.next_version }}"
|
TAG="${{ needs.check_changelog.outputs.next_version }}"
|
||||||
|
RELEASE_NAME="${{ needs.check_changelog.outputs.next_version }}"
|
||||||
RELEASE_BODY="${{ needs.check_changelog.outputs.release_body }}"
|
RELEASE_BODY="${{ needs.check_changelog.outputs.release_body }}"
|
||||||
PRE_RELEASE="false"
|
PRE_RELEASE="false"
|
||||||
elif [[ $GITHUB_REF == refs/heads/nightly ]]; then
|
elif [[ $GITHUB_REF == refs/heads/nightly ]]; then
|
||||||
TAG="nightly"
|
TAG="${COMMIT:0:7}"
|
||||||
|
RELEASE_NAME="nightly"
|
||||||
RELEASE_BODY="automated nightly release\nupdated: $(date -u +'%Y-%m-%dT%H:%M:%SZ')"
|
RELEASE_BODY="automated nightly release\nupdated: $(date -u +'%Y-%m-%dT%H:%M:%SZ')"
|
||||||
PRE_RELEASE="true"
|
PRE_RELEASE="true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "create_release=${RELEASE}" >> $GITHUB_OUTPUT
|
echo "create_release=${RELEASE}" >> $GITHUB_OUTPUT
|
||||||
echo "release_tag=${TAG}" >> $GITHUB_OUTPUT
|
echo "release_tag=${TAG}" >> $GITHUB_OUTPUT
|
||||||
|
echo "release_commit=${COMMIT}" >> $GITHUB_OUTPUT
|
||||||
|
echo "release_name=${RELEASE_NAME}" >> $GITHUB_OUTPUT
|
||||||
echo "release_body=${RELEASE_BODY}" >> $GITHUB_OUTPUT
|
echo "release_body=${RELEASE_BODY}" >> $GITHUB_OUTPUT
|
||||||
echo "pre_release=${PRE_RELEASE}" >> $GITHUB_OUTPUT
|
echo "pre_release=${PRE_RELEASE}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|
@ -217,7 +222,7 @@ jobs:
|
||||||
arch: ['x86_64', 'aarch64']
|
arch: ['x86_64', 'aarch64']
|
||||||
exclude:
|
exclude:
|
||||||
# exclude `aarch64` on anything except a release triggering event
|
# exclude `aarch64` on anything except a release triggering event
|
||||||
- arch: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) && '' || 'aarch64' }}
|
- arch: ${{ needs.setup_release.outputs.create_release == 'true' && '' || 'aarch64' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
@ -302,8 +307,9 @@ jobs:
|
||||||
if: ${{ needs.setup_release.outputs.create_release == 'true' }}
|
if: ${{ needs.setup_release.outputs.create_release == 'true' }}
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
name: ${{ needs.setup_release.outputs.release_tag }}
|
name: ${{ needs.setup_release.outputs.release_name }}
|
||||||
tag: ${{ needs.setup_release.outputs.release_tag }}
|
tag: ${{ needs.setup_release.outputs.release_tag }}
|
||||||
|
commit: ${{ needs.setup_release.outputs.release_commit }}
|
||||||
artifacts: "*artifacts/*"
|
artifacts: "*artifacts/*"
|
||||||
token: ${{ secrets.GH_BOT_TOKEN }}
|
token: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
|
|
@ -488,8 +494,9 @@ jobs:
|
||||||
if: ${{ needs.setup_release.outputs.create_release == 'true' }}
|
if: ${{ needs.setup_release.outputs.create_release == 'true' }}
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
name: ${{ needs.setup_release.outputs.release_tag }}
|
name: ${{ needs.setup_release.outputs.release_name }}
|
||||||
tag: ${{ needs.setup_release.outputs.release_tag }}
|
tag: ${{ needs.setup_release.outputs.release_tag }}
|
||||||
|
commit: ${{ needs.setup_release.outputs.release_commit }}
|
||||||
artifacts: "*artifacts/*"
|
artifacts: "*artifacts/*"
|
||||||
token: ${{ secrets.GH_BOT_TOKEN }}
|
token: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
|
|
@ -557,19 +564,20 @@ jobs:
|
||||||
rm -f ./sunshine-macos-experimental-bundle.dmg
|
rm -f ./sunshine-macos-experimental-bundle.dmg
|
||||||
rm -f ./sunshine-macos-experimental-archive.zip
|
rm -f ./sunshine-macos-experimental-archive.zip
|
||||||
|
|
||||||
## no artifacts to release currently
|
# # no artifacts to release currently
|
||||||
# - name: Create/Update GitHub Release
|
# - name: Create/Update GitHub Release
|
||||||
# if: ${{ needs.setup_release.outputs.create_release == 'true' }}
|
# if: ${{ needs.setup_release.outputs.create_release == 'true' }}
|
||||||
# uses: ncipollo/release-action@v1
|
# uses: ncipollo/release-action@v1
|
||||||
# with:
|
# with:
|
||||||
# name: ${{ needs.setup_release.outputs.release_tag }}
|
# name: ${{ needs.setup_release.outputs.release_name }}
|
||||||
# tag: ${{ needs.setup_release.outputs.release_tag }}
|
# tag: ${{ needs.setup_release.outputs.release_tag }}
|
||||||
# artifacts: "*artifacts/*"
|
# commit: ${{ needs.setup_release.outputs.release_commit }}
|
||||||
# token: ${{ secrets.GH_BOT_TOKEN }}
|
# artifacts: "*artifacts/*"
|
||||||
# allowUpdates: true
|
# token: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
# body: ${{ needs.setup_release.outputs.release_body }}
|
# allowUpdates: true
|
||||||
# discussionCategory: announcements
|
# body: ${{ needs.setup_release.outputs.release_body }}
|
||||||
# prerelease: ${{ needs.setup_release.outputs.pre_release }}
|
# discussionCategory: announcements
|
||||||
|
# prerelease: ${{ needs.setup_release.outputs.pre_release }}
|
||||||
|
|
||||||
build_mac_port:
|
build_mac_port:
|
||||||
name: Macports
|
name: Macports
|
||||||
|
|
@ -775,8 +783,9 @@ jobs:
|
||||||
if: ${{ needs.setup_release.outputs.create_release == 'true' }}
|
if: ${{ needs.setup_release.outputs.create_release == 'true' }}
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
name: ${{ needs.setup_release.outputs.release_tag }}
|
name: ${{ needs.setup_release.outputs.release_name }}
|
||||||
tag: ${{ needs.setup_release.outputs.release_tag }}
|
tag: ${{ needs.setup_release.outputs.release_tag }}
|
||||||
|
commit: ${{ needs.setup_release.outputs.release_commit }}
|
||||||
artifacts: "*artifacts/*"
|
artifacts: "*artifacts/*"
|
||||||
token: ${{ secrets.GH_BOT_TOKEN }}
|
token: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
|
|
@ -850,8 +859,9 @@ jobs:
|
||||||
if: ${{ needs.setup_release.outputs.create_release == 'true' }}
|
if: ${{ needs.setup_release.outputs.create_release == 'true' }}
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
name: ${{ needs.setup_release.outputs.release_tag }}
|
name: ${{ needs.setup_release.outputs.release_name }}
|
||||||
tag: ${{ needs.setup_release.outputs.release_tag }}
|
tag: ${{ needs.setup_release.outputs.release_tag }}
|
||||||
|
commit: ${{ needs.setup_release.outputs.release_commit }}
|
||||||
artifacts: "*artifacts/*"
|
artifacts: "*artifacts/*"
|
||||||
token: ${{ secrets.GH_BOT_TOKEN }}
|
token: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue