partey_workadventure/.github/workflows/build-and-release-desktop.yml

111 lines
2.7 KiB
YAML
Raw Normal View History

2022-02-18 11:49:53 +01:00
name: Build & Release Desktop App
on:
push:
branches:
- master
- develop
pull_request:
release:
types: [created]
jobs:
build_on_linux:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: "actions/checkout@v2.0.0"
- name: "Setup NodeJS"
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: "Install dependencies"
run: yarn install --froze-lockfile
working-directory: "desktop"
- name: "Build Typescript"
run: yarn build
working-directory: "desktop"
- name: "Build App"
2022-02-18 12:02:41 +01:00
run: yarn bundle --publish never
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2022-02-18 11:49:53 +01:00
working-directory: "desktop"
if: ${{ github.event_name != 'release' }}
- name: "Build & Publish App"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn release
working-directory: "desktop"
if: ${{ github.event_name == 'release' }}
build_on_mac:
runs-on: macos-latest
steps:
- name: "Checkout"
uses: "actions/checkout@v2.0.0"
- name: "Setup NodeJS"
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: "Install dependencies"
run: yarn install --froze-lockfile
working-directory: "desktop"
- name: "Build Typescript"
run: yarn build
working-directory: "desktop"
- name: "Build App"
2022-02-18 12:02:41 +01:00
run: yarn bundle --publish never
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2022-02-18 11:49:53 +01:00
working-directory: "desktop"
if: ${{ github.event_name != 'release' }}
- name: "Build & Publish App"
2022-02-18 12:02:41 +01:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2022-02-18 11:49:53 +01:00
run: yarn release
working-directory: "desktop"
if: ${{ github.event_name == 'release' }}
build_on_win:
runs-on: windows-latest
steps:
- name: "Checkout"
uses: "actions/checkout@v2.0.0"
- name: "Setup NodeJS"
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: "Install dependencies"
run: yarn install --froze-lockfile
working-directory: "desktop"
- name: "Build Typescript"
run: yarn build
working-directory: "desktop"
- name: "Build App"
2022-02-18 12:02:41 +01:00
run: yarn bundle --publish never
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2022-02-18 11:49:53 +01:00
working-directory: "desktop"
if: ${{ github.event_name != 'release' }}
- name: "Build & Publish App"
2022-02-18 12:02:41 +01:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2022-02-18 11:49:53 +01:00
run: yarn release
working-directory: "desktop"
if: ${{ github.event_name == 'release' }}