armcord/.github/workflows/build.yml

38 lines
1.1 KiB
YAML
Raw Normal View History

name: Build/release
on: push
2021-05-06 18:47:19 +00:00
jobs:
release:
runs-on: ${{ matrix.os }}
2021-05-06 18:47:19 +00:00
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
2021-05-06 18:47:19 +00:00
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 16
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
# skip npm run build as there's no script like that
2022-01-15 21:32:59 +00:00
skip_build: false
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
2021-07-17 15:43:09 +00:00
release: ${{ startsWith(github.ref, 'refs/tags/v') }} #disabled for now as it caused problems (nvm)
2021-06-30 14:48:57 +00:00
- name: Archive production builds
uses: actions/upload-artifact@v2
2021-06-30 14:50:00 +00:00
with:
name: dist folder
2021-07-17 15:43:09 +00:00
path: dist/**