Skip to content

Commit

Permalink
Deploy GitHub pages via ci
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwep committed May 12, 2024
1 parent 8d49071 commit 39b4d82
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [ "push", "pull_request" ]

jobs:
build:
name: Lint and build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -28,3 +29,26 @@ jobs:

- name: Build
run: pnpm run build

- name: Bundle files for deployment
run: tar -cvf github-pages.tar dist www index.html

- name: Upload artifact for deployment
uses: actions/upload-artifact@v4
with:
name: github-pages
path: github-pages.tar

deploy:
name: Deploy to GitHub Pages
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4

0 comments on commit 39b4d82

Please sign in to comment.