Skip to content

Commit

Permalink
Update publish
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Jul 3, 2024
1 parent e229746 commit b385783
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions .github/workflows/build-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,10 @@ jobs:
- run: npm ci
- 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 b385783

Please sign in to comment.