Create Manual Tag #61
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: Create Manual Release | |
on: | |
# push: | |
# # Sequence of patterns matched against refs/tags | |
# tags: | |
# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
workflow_dispatch: | |
jobs: | |
# ┌────────────────────────────────────┐ | |
# │ │ | |
# │ Build MacOS / Windows │ | |
# │ │ | |
# └────────────────────────────────────┘ | |
build: | |
name: Build Applications | |
# Use a matrix of multiple Operating Systems | |
strategy: | |
matrix: | |
os: [macOS-latest, windows-latest] | |
# Use each OS | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Build/release Electron app | |
uses: samuelmeuli/action-electron-builder@v1 | |
env: | |
CSC_IDENTITY_AUTO_DISCOVERY: false | |
with: | |
# GitHub token, automatically provided to the action | |
# (No need to define this secret in the repo settings) | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
# If the commit is tagged with a version (e.g. "v1.0.0"), | |
# release the app after building | |
release: ${{ startsWith(github.ref, 'refs/tags/v') }} |