Skip to content

Commit

Permalink
Add deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmada committed Jun 15, 2023
1 parent 4780fb4 commit dc9787f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy pages

on: push

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

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

- name: Install dependencies
working-directory: ./slidev
run: yarn

- name: Build
working-directory: ./slidev
run: yarn build --base MasteringEnumeration

- name: Deploy pages
uses: crazy-max/ghaction-github-pages@v3
with:
build_dir: ./slidev/dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion slidev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"export": "slidev export"
},
"dependencies": {
"@slidev/cli": "^0.42.0",
"@slidev/cli": "^0.42.4",
"@slidev/theme-default": "latest",
"@slidev/theme-seriph": "latest"
},
Expand Down

0 comments on commit dc9787f

Please sign in to comment.