Skip to content

Commit

Permalink
feat: slidev deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
abmfy committed Jul 31, 2023
1 parent 2a53a76 commit 0f41870
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy pages

on:
workflow_dispatch: {}
push:
branches:
- main

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

- uses: actions/setup-node@v3
with:
node-version: 'lts/*'

- name: Install dependencies
run: npm install

- name: Install slidev
run: npm i -g @slidev/cli

- name: Build
run: slidev build --base sast2023-docker

- uses: actions/configure-pages@v3

- uses: actions/upload-pages-artifact@v1
with:
path: dist

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

0 comments on commit 0f41870

Please sign in to comment.