mirror of
https://github.com/zoriya/flood.git
synced 2025-12-06 07:16:18 +00:00
CI: build pkg executables
This commit is contained in:
42
.github/workflows/publish-rolling.yml
vendored
42
.github/workflows/publish-rolling.yml
vendored
@@ -34,3 +34,45 @@ jobs:
|
||||
- run: npm publish --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
pkg:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node: [14]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Use Node.js ${{ matrix.node }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
- run: npm ci
|
||||
- run: sudo npm install -g pkg
|
||||
|
||||
- name: Tag rolling release
|
||||
run: |
|
||||
npm version --no-git-tag-version 0.0.0-master.`git rev-parse --short HEAD`
|
||||
|
||||
- name: Build executables
|
||||
run: |
|
||||
npm run build-pkg
|
||||
|
||||
- name: 'Upload executable: Linux'
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
path: flood-linux
|
||||
|
||||
- name: 'Upload executable: MacOS'
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
path: flood-macos
|
||||
|
||||
- name: 'Upload executable: Windows'
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
path: flood-win.exe
|
||||
|
||||
Reference in New Issue
Block a user