Skip to content

Commit

Permalink
Revert "GitHub Actions: use actions/deploy-pages"
Browse files Browse the repository at this point in the history
This reverts commit 2f60b9e.
  • Loading branch information
simon04 committed Dec 2, 2023
1 parent 2f60b9e commit 1573004
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Node CI
on:
push:
pull_request:
workflow_dispatch:

jobs:
build:
Expand All @@ -16,26 +15,8 @@ jobs:
- run: yarn install --no-progress --frozen-lockfile
- run: yarn test
- run: yarn build
- uses: actions/configure-pages@v3
- uses: actions/upload-pages-artifact@v2
- uses: peaceiris/actions-gh-pages@v3
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
path: ./dist

deploy:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/master')
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: true
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist

0 comments on commit 1573004

Please sign in to comment.