-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (59 loc) · 1.74 KB
/
pages.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: build and deploy on pages
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
steps:
- uses: actions/checkout@v3
- uses: kenchan0130/actions-system-info@master
id: system-info
- id: cache-node-modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-${{ steps.system-info.outputs.release }}-node-modules-${{ hashFiles('package-lock.json') }}
- if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
- env:
VITE_AMPLITUDE_API_KEY: ${{ secrets.VITE_AMPLITUDE_API_KEY }}
run: npm run build
- uses: actions/upload-pages-artifact@v1
with:
path: dist/
deploy-gh-pages:
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/deploy-pages@v1
deploy-itch:
needs: build
environment:
name: github-pages
runs-on: ubuntu-latest
if: github.repository == 'ndry/digdeeper3'
steps:
- uses: actions/download-artifact@v3
with:
name: github-pages
# - run: ls -R
- run: mkdir dist
- run: tar -xf artifact.tar -C dist
# - run: ls -R
- uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: html5
ITCH_GAME: through-cells
ITCH_USER: ndry
PACKAGE: dist
VERSION_FILE: dist/appVersion.txt