Skip to content

Commit

Permalink
Merge pull request #4 from Dan-Q/gh-pages-test
Browse files Browse the repository at this point in the history
Create deployment workflow
  • Loading branch information
Dan-Q authored Sep 24, 2024
2 parents 8125a74 + cd3a0e8 commit a28721f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main
workflow_dispatch:

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

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Compile JS
run: npx rollup -c
- name: Set up GitHub Pages
uses: actions/configure-pages@v4
- name: Deploy site
uses: actions/deploy-pages@v4
with:
artifact_name: 'public'

0 comments on commit a28721f

Please sign in to comment.