diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..c61cea4 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 }} \ No newline at end of file diff --git a/slidev/package.json b/slidev/package.json index 3da5c88..7a2f5ed 100644 --- a/slidev/package.json +++ b/slidev/package.json @@ -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" },