Use official deploy-pages action

This commit is contained in:
Matt Borgerson 2023-01-17 13:36:29 -07:00
parent f73e69a587
commit e8f9e5a498

View File

@ -5,7 +5,7 @@ on:
- cron: '0 * */1 * *' - cron: '0 * */1 * *'
jobs: jobs:
Init: Build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Clone Tree - name: Clone Tree
@ -24,9 +24,20 @@ jobs:
cssmin > dist/theme.css.min < dist/theme.css cssmin > dist/theme.css.min < dist/theme.css
mv dist/theme.css.min dist/theme.css mv dist/theme.css.min dist/theme.css
echo "xemu.app" > dist/CNAME echo "xemu.app" > dist/CNAME
- name: Deploy - uses: actions/upload-pages-artifact@v1
uses: peaceiris/actions-gh-pages@v3 if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/heads/master')
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} path: dist
publish_dir: ./dist Deploy:
force_orphan: true needs: [build]
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/heads/master')
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v1.2.3