-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (42 loc) · 1.38 KB
/
staging.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
name: Staging
on:
push:
branches: [ main ]
jobs:
Staging:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16 ]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --immutable --immutable-cache --check-cache
# - name: Get yarn cache directory path
# id: yarn-cache-dir-path
# run: echo "::set-output name=dir::${{ github.workspace }}/.next/cache"
# - name: Optimize Cache
# uses: actions/cache@v3
# id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
# with:
# path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# restore-keys: |
# ${{ runner.os }}-yarn--${{ hashFiles('**/yarn.lock') }}-
- run: yarn run build
env:
CI: false
- name: removing .cache folder
run: |
rm -rf /home/runner/work/wallet/wallet/.next/cache/
shell: bash
- name: Publish
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CF_TOKEN }}
environment: 'beta-wallet'
env:
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}