forked from the-via/app
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 823 Bytes
/
deploy.yml
File metadata and controls
39 lines (33 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: 'deploy'
on:
push:
branches:
- framework16
pull_request:
types: [assigned, opened, synchronize, reopened]
workflow_dispatch:
permissions:
contents: read
deployments: write
concurrency:
group: 'deploy'
cancel-in-progress: true
jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v3
with:
cache: 'npm'
node-version: 18
- run: npm i
- run: npm run build:dist
- uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: framework-keyboard-via
directory: './dist'
gitHubToken: ${{ secrets.GITHUB_TOKEN }}