v10.0.0-alpha #151
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 | |
on: | |
push: | |
tags: | |
- v[0-9]+.* | |
jobs: | |
# the create-release would be used once we want to create a specific release based on if the commit has a tag | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: taiki-e/create-gh-release-action@v1 | |
env: | |
# (required) | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# upload the app package for each target os | |
upload-assets: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Windows only, install wget | |
if: ${{ runner.os == 'Windows' }} | |
run: | | |
choco install wget --no-progress | |
- name: Install nodejs dependencies | |
run: | | |
npm install | |
npm run web-install | |
npm run electron-install | |
npm run zod-models-install | |
npm run zod-models-build | |
shell: bash | |
- name: setup for codesigning (macos only) | |
if: ${{ runner.os == 'macOs' }} | |
uses: figleafteam/import-codesign-certs@v2 | |
with: | |
p12-file-base64: ${{ secrets.HBE_APPLE_CERTIFICATE_BASE64 }} | |
p12-password: ${{ secrets.HBE_APPLE_CERTIFICATE_PASS }} | |
- name: build acorn (and notarize it- macos only) | |
env: | |
APPLE_DEV_IDENTITY: ${{ secrets.APPLE_DEV_IDENTITY }} | |
APPLE_ID_EMAIL: ${{ secrets.APPLE_ID_EMAIL }} | |
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }} | |
DEBUG: electron-osx-sign*,electron-notarize* | |
run: | | |
npm run build | |
shell: bash | |
- name: upload binary (ubuntu only) | |
if: ${{ runner.os == 'Linux' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release upload "${GITHUB_REF#refs/tags/}" "electron/out/Acorn-10.0.0-alpha.AppImage" --clobber | |
- name: upload binary (macos only) | |
if: ${{ runner.os == 'macOs' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release upload "${GITHUB_REF#refs/tags/}" "electron/out/Acorn.10.0.0-alpha.darwin-x64.zip" --clobber | |
- name: upload binary (Windows only) | |
if: ${{ runner.os == 'Windows' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release upload "$($env:GITHUB_REF -replace "refs/tags/")" "electron/out/Acorn.Setup.10.0.0-alpha.exe" --clobber |