* bump deps * fix test * fix node verison * 0.36.0 * revert tsconfig * add env * fix cmake build for windows * fix qode bump * temp fix
48 lines
1.9 KiB
YAML
48 lines
1.9 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- master # Push events on master branch
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-18.04]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16.x'
|
|
- name: Install deps
|
|
run: yarn install --ignore-scripts
|
|
- name: Build nodegui
|
|
run: npx tsc
|
|
- name: Archive using npm pack
|
|
run: npm --no-git-tag-version version 0.0.0-latest-master && npm pack
|
|
- uses: actions/upload-artifact@v1
|
|
with:
|
|
name: latest-release
|
|
path: nodegui-nodegui-0.0.0-latest-master.tgz
|
|
- uses: nodegui/create-release@master
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
code: v0.0.0-latest-master
|
|
name: Latest Master Release
|
|
body: >
|
|
Latest auto release corresponding to commit ${{github.sha}} 🔥.
|
|
To install do:
|
|
`yarn install https://github.com/nodegui/nodegui/releases/download/v0.0.0-latest-master/nodegui-master.tgz`
|
|
or
|
|
`yarn install http://master-release.nodegui.org`
|
|
assets: >
|
|
nodegui-nodegui-0.0.0-latest-master.tgz:nodegui-master.tgz:application/tar+gzip
|
|
recreate: true
|
|
- name: Repository Dispatch
|
|
uses: peter-evans/repository-dispatch@v1
|
|
with:
|
|
token: ${{ secrets.REPO_ACCESS_TOKEN }}
|
|
repository: nodegui/nodegui
|
|
event-type: on-demand-build
|
|
client-payload: '{"ref": "${{ github.ref }}","tag": "v0.0.0-latest-master"}'
|