Skip to content

Commit 6e636fe

Browse files
committed
replace github pages module and npm scripts with github action
Static builds now get automatically published on a push from the master branch to GitHub pages using a GitHub action.
1 parent e78d4c4 commit 6e636fe

File tree

3 files changed

+40
-255
lines changed

3 files changed

+40
-255
lines changed

.github/workflows/publish.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Created from starter workflow for GitHub Pages; see: https://github.com/actions/starter-workflows/blob/main/pages/static.yml
2+
3+
name: Publish to GitHub Pages
4+
on:
5+
push
6+
workflow_dispatch:
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
concurrency:
12+
group: "pages"
13+
cancel-in-progress: true
14+
jobs:
15+
deploy:
16+
environment:
17+
name: github-pages
18+
url: ${{ steps.deployment.outputs.page_url }}
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Check out repository code
22+
uses: actions/checkout@v3
23+
- name: Use Node.js
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: '16.x'
27+
cache: 'npm'
28+
- name: Install dependencies
29+
run: npm ci
30+
- name: Create build
31+
run: npm run build
32+
- name: Setup Pages
33+
uses: actions/configure-pages@v2
34+
- name: Upload build
35+
uses: actions/upload-pages-artifact@v1
36+
with:
37+
path: 'dist'
38+
- name: Deploy to GitHub Pages
39+
id: deployment
40+
uses: actions/deploy-pages@v1

package-lock.json

-252
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)