Add workflow_dispatch trigger for build scripts #6
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-mac | ||
on: | ||
workflow_dispatch | ||
push: | ||
branches: [main] | ||
jobs: | ||
build-mac: | ||
name: Build StemRoller for macOS | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: main | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: 'npm' | ||
- run: npm i -D | ||
- run: npm run download-third-party-apps | ||
- run: npm run build:mac | ||
- uses: tyankatsu0105/read-package-version-actions@v1 | ||
id: package-version | ||
- run: ditto -c -k --sequesterRsrc --keepParent dist/mac/StemRoller.app stemroller-${{ steps.package-version.outputs.version }}-mac.zip | ||
- uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ steps.package-version.outputs.version }} | ||
files: stemroller-${{ steps.package-version.outputs.version }}-mac.zip |