Skip to content

Commit 117361e

Browse files
add deployement workflow
1 parent 861f708 commit 117361e

File tree

3 files changed

+59
-8
lines changed

3 files changed

+59
-8
lines changed

.do/app.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/deploy.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Deploy static content
2+
3+
on:
4+
# Triggers the workflow on push or pull request events but only for the "master" branch
5+
push:
6+
branches: ["main"]
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow one concurrent deployment
18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: true
21+
22+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
23+
jobs:
24+
# Single deploy job since we're just deploying
25+
deploy:
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v3
33+
- name: Set up Node
34+
uses: actions/setup-node@v3
35+
with:
36+
node-version: 20
37+
cache: "npm"
38+
- name: Install dependencies
39+
run: npm install
40+
- name: Setup stats
41+
run: |
42+
./setup-stats.sh
43+
- name: Build
44+
run: |
45+
npm run build
46+
- name: Copy missing static files
47+
run: |
48+
# Allow all routes to be served by index.html
49+
cp dist/index.html dist/404.html
50+
- name: Setup Pages
51+
uses: actions/configure-pages@v3
52+
- name: Upload artifact
53+
uses: actions/upload-pages-artifact@v1
54+
with:
55+
# Upload dist repository
56+
path: "./dist"
57+
- name: Deploy to Github Pages
58+
id: deployment
59+
uses: actions/deploy-pages@v1
File renamed without changes.

0 commit comments

Comments
 (0)