Skip to content

Commit

Permalink
ci(deploy): updated according to latest GH pages docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-solanki committed Jul 14, 2023
1 parent 371a93c commit be893a2
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest

permissions:
contents: read
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v3

Expand All @@ -33,9 +43,12 @@ jobs:
- name: Build
run: slidev build example.md --base slidev-theme-dracula

- name: Deploy pages
uses: crazy-max/ghaction-github-pages@v2
- uses: actions/configure-pages@v3

- uses: actions/upload-pages-artifact@v1
with:
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
path: dist

- name: Deploy
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit be893a2

Please sign in to comment.