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 * *'
|
- 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
|
||||||
|
Loading…
Reference in New Issue
Block a user