Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Apr 21, 2024
1 parent f224ad7 commit 4e9cd4b
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions .github/workflows/build-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]

permissions:
contents: write
jobs:
build:

Expand Down Expand Up @@ -36,27 +37,10 @@ jobs:
run: npm ci --ignore-scripts
- run: npm run check-format
- run: npm run build
- name: Save build output
uses: actions/upload-artifact@v1
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@v4
with:
name: built-output
path: ./dist

deploy-plugin:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master'
steps:
- name: Load saved build output
uses: actions/download-artifact@v1
with:
name: built-output
path: ./dist
- name: Deploy to GitHub Pages
uses: peaceiris/[email protected]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
with:
deploy_key: ${{ secrets.ACTION_DEPLOY_KEY }}
publish_dir: ./dist
commit_message: Deploy to GitHub Pages
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: dist

0 comments on commit 4e9cd4b

Please sign in to comment.