Skip to content

Commit

Permalink
feat: try github actions pages
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Aug 9, 2022
1 parent 0db26ea commit 107796a
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
name: GitHub Pages
on:
push:
branches:
- main
branches: [ "main" ]
workflow_dispatch:

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

jobs:
build-and-deploy:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
Expand All @@ -26,10 +33,18 @@ jobs:
- name: Build 🔧
run: pnpm build --base '/eigen-tour/'

- name: Deploy 🚀
uses: JamesIves/github-pages-[email protected]
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist
CLEAN: true
path: ./dist

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@v1

0 comments on commit 107796a

Please sign in to comment.