Merge pull request #32 from BloomBooks/BL14049_VertScroll #33
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: Build/release | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build-installer: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
# don't quit checking one OS just because another failed | |
fail-fast: false | |
matrix: | |
os: [windows-latest] | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v4 | |
# remember to keep this in sync with package.json's volta->node setting | |
with: | |
node-version: 20 | |
cache: "yarn" # I always get 'yarn cache is not found' but ah well | |
- name: Build/release Electron app | |
# Let's only do this if the commit is tagged with a version | |
#if: startsWith(github.ref, 'refs/tags/v') | |
uses: coparse-inc/[email protected] | |
env: | |
in_github_action: "true" | |
with: | |
# GitHub token, automatically provided to the action | |
# (No need to define this secret in the repo settings) | |
github_token: ${{ secrets.github_token }} | |
# Once we can sign on GHA, remove this line and uncomment all the rest of this file, including "release: false" | |
release: true # ${{ startsWith(github.ref, 'refs/tags/v') }} | |
# release: false | |
# - uses: actions/upload-artifact@v4 | |
# with: | |
# name: BloomPubViewerSetup | |
# path: "**/BloomPub*.exe" | |
# if-no-files-found: error | |
# sign-installer: | |
# name: Sign installer | |
# needs: build-installer | |
# #if: startsWith(github.ref, 'refs/tags/v') | |
# uses: sillsdev/codesign/.github/workflows/[email protected] | |
# with: | |
# artifact: BloomPubViewerSetup | |
# secrets: | |
# certificate: ${{ secrets.CODESIGN_LSDEVSECTIGOEV }} | |
# create-release: | |
# name: Create Release | |
# needs: sign-installer | |
# runs-on: windows-latest | |
# steps: | |
# - uses: actions/download-artifact@v4 | |
# with: | |
# name: BloomPubViewerSetup | |
# - name: Create Release | |
# uses: softprops/action-gh-release@v2 | |
# with: | |
# files: "**/BloomPub*.exe" | |
# body: | | |
# Release for version ${{ github.ref }} | |
# draft: true |