Build/release_SHORT #1
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_SHORT | |
on: | |
#push: | |
# tags: | |
# - 'v*' | |
#schedule: | |
# - cron: '0 10 * * *' | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
env: | |
is_tag: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
# os: [windows-latest] | |
steps: | |
# Windows fix. See https://github.com/actions/checkout/issues/226 | |
- run: git config --global core.autocrlf false | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: 'yarn' | |
# Because of timeout issue https://github.com/yarnpkg/yarn/issues/4890 | |
- run: yarn install --immutable --network-timeout 1000000 |