Skip to content

Commit

Permalink
Automate build and deploy (#287)
Browse files Browse the repository at this point in the history
* Add GitHub Actions' workflow to build and deploy

* Strip Jekyll and upload as a static file

* Do not version generated files
  • Loading branch information
charpeni authored Nov 27, 2023
1 parent fc7078c commit e8736c4
Show file tree
Hide file tree
Showing 116 changed files with 60 additions and 6,412 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Deploy Website

on:
# Runs on pushes targeting the default branch
push:
branches: ['master']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: 'pages'
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build with npm
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './docs'

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ Thumbs.db
node_modules
build/
public/examples
/docs/
!/docs/index.html
!/docs/404.html
!/docs/CNAME
2 changes: 0 additions & 2 deletions docs/134.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/134.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions docs/183.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/183.js.map

This file was deleted.

Binary file removed docs/3826fa1cb2348dd93948a50cbd2b8fb6.woff2
Binary file not shown.
Binary file removed docs/3ec13a24af3fdda1110771d3541915a2.ttf
Binary file not shown.
Binary file removed docs/5c9febce52054ae0b96ddd3e2d173e1a.woff
Binary file not shown.
2 changes: 0 additions & 2 deletions docs/717.js

This file was deleted.

Loading

0 comments on commit e8736c4

Please sign in to comment.