mirror of
https://github.com/xemu-project/xemu-website.git
synced 2024-11-23 03:19:44 +00:00
Use official deploy-pages action
This commit is contained in:
parent
f73e69a587
commit
e8f9e5a498
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user