ci: rebuild Linux builder on pack-appimage
change
#24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Nuga | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build: | |
uses: ./.github/workflows/build.yaml | |
secrets: inherit | |
with: | |
linux-arm64: true | |
linux-appimage: true | |
mac-notarize: true | |
release: | |
needs: [build] | |
name: Publish release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set envs | |
run: | | |
export RELEASE_VERSION=${GITHUB_REF#refs/*/} | |
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV | |
echo "IS_STABLE_VERSION=$(node scripts/workflows/is-stable.mjs $RELEASE_VERSION)" >> $GITHUB_ENV | |
echo "VERSION_DISPLAY=${RELEASE_VERSION:1}" >> $GITHUB_ENV | |
- name: Download Linux build | |
uses: actions/download-artifact@v3 | |
with: | |
name: Linux-dist | |
path: dist/ | |
- name: Download macOS build | |
uses: actions/download-artifact@v3 | |
with: | |
name: macOS-dist | |
path: dist/ | |
- name: Rename macOS build | |
run: make release/darwin | |
- name: Extract release notes | |
run: ./scripts/workflows/get-release-notes.mjs "$RELEASE_VERSION" > dist/notes.md | |
- name: Create GitHub release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: ${{ env.VERSION_DISPLAY }} | |
body_path: dist/notes.md | |
token: ${{ secrets.USER_PAT }} | |
prerelease: ${{ env.IS_STABLE_VERSION == 'false' }} | |
files: | | |
dist/Nuga-1.0.0-rc-*.AppImage | |
dist/Nuga-1.0.0-rc-mac-*.zip |