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 * *'
jobs:
Init:
Build:
runs-on: ubuntu-latest
steps:
- name: Clone Tree
@ -24,9 +24,20 @@ jobs:
cssmin > dist/theme.css.min < dist/theme.css
mv dist/theme.css.min dist/theme.css
echo "xemu.app" > dist/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
- uses: actions/upload-pages-artifact@v1
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/heads/master')
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
force_orphan: true
path: dist
Deploy:
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