-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
40 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Created from starter workflow for GitHub Pages; see: https://github.com/actions/starter-workflows/blob/main/pages/static.yml | ||
|
||
name: Publish to GitHub Pages | ||
on: | ||
push | ||
workflow_dispatch: | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
jobs: | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16.x' | ||
cache: 'npm' | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Create build | ||
run: npm run build | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v2 | ||
- name: Upload build | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: 'dist' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.