Skip to content

Commit

Permalink
add publishing demo slides to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
murilo-cunha committed Jul 6, 2023
1 parent 46a4558 commit c8de39b
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ name: Publish package to npmjs
on:
push:
branches: [main]
env:
BASE: slidev-addon-asciinema
jobs:
build:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -34,3 +36,31 @@ jobs:
tag_name: "${{ env.TAG }}",
generate_release_notes: true
})
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14'
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build --base ${{ env.BASE }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: dist/
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit c8de39b

Please sign in to comment.