mirror of
https://github.com/p-stream/simple-proxy.git
synced 2026-01-11 20:10:35 +00:00
GitHub Actions: Build Release
This commit is contained in:
parent
3d77850762
commit
80086b7464
1 changed files with 32 additions and 0 deletions
32
.github/workflows/build_release.yml
vendored
Normal file
32
.github/workflows/build_release.yml
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
name: Build Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 16
|
||||
|
||||
- name: Install NPM packages
|
||||
run: npm install
|
||||
|
||||
- name: Build project
|
||||
run: npm run build
|
||||
|
||||
- name: Upload production-ready build files
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: worker.js
|
||||
path: ./dist/worker.js
|
||||
Loading…
Reference in a new issue