mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08:00
Add deployment to Cloudflare Workers
This commit is contained in:
28
.github/workflows/cd.yml
vendored
Normal file
28
.github/workflows/cd.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Graphite Continuous Deployment
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '14.x'
|
||||
- name: Install Dependencies
|
||||
run: cd client/web && npm install
|
||||
- name: build node
|
||||
run: cd client/web && npm run build
|
||||
- name: Deploy to Cloudflare Workers
|
||||
uses: cloudflare/wrangler-action@1.2.0
|
||||
with:
|
||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||
Reference in New Issue
Block a user