-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (43 loc) · 1.13 KB
/
frontend.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: frontend
on:
workflow_dispatch:
push:
paths:
- frontend/**
- .github/workflows/frontend.yml
pull_request:
branches:
- main
paths:
- frontend/**
- .github/workflows/frontend.yml
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies from lock.
run: npm ci
working-directory: ./frontend
# - name: Linter.
# run: npm run lint:ci
# - name: Unit tests.
# run: npm run test:cov
# - name: E2E tests.
# run: npm run test:e2e
- name: Build source code.
run: npm run build
working-directory: ./frontend
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_PAGES_TOKEN }}
accountId: 620ff29bbd515d2848f5306578bd1d1d
projectName: airdrop
directory: frontend/build
gitHubToken: ${{ secrets.GITHUB_TOKEN }}