deploy to github pages
This commit is contained in:
24
.github/workflows/build_push.yml
vendored
24
.github/workflows/build_push.yml
vendored
@@ -51,7 +51,7 @@ jobs:
|
|||||||
- name: Checkout preview branch
|
- name: Checkout preview branch
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: 'Suwayomi/Tachidesk-WebUI-preview'
|
repository: "Suwayomi/Tachidesk-WebUI-preview"
|
||||||
ref: main
|
ref: main
|
||||||
path: preview
|
path: preview
|
||||||
token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}
|
token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}
|
||||||
@@ -78,4 +78,24 @@ jobs:
|
|||||||
artifacts: "master/buildZip/*"
|
artifacts: "master/buildZip/*"
|
||||||
owner: "Suwayomi"
|
owner: "Suwayomi"
|
||||||
repo: "Tachidesk-WebUI-preview"
|
repo: "Tachidesk-WebUI-preview"
|
||||||
tag: ${{ steps.GenTagName.outputs.value }}
|
tag: ${{ steps.GenTagName.outputs.value }}
|
||||||
|
|
||||||
|
- name: Checkout github pages repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: "Tachidesk-WebUI-preview/tachidesk-webui-preview.github.io"
|
||||||
|
ref: main
|
||||||
|
path: gh-pages
|
||||||
|
token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}
|
||||||
|
|
||||||
|
- name: Deploy github pages
|
||||||
|
run: |
|
||||||
|
TAG="${{ steps.GenTagName.outputs.value }}"
|
||||||
|
rm -rf gh-pages/*
|
||||||
|
cp master/build/* gh-pages
|
||||||
|
cd gh-pages
|
||||||
|
git add -A
|
||||||
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
git config --global user.name "github-actions[bot]"
|
||||||
|
git commit -m "Updated to $TAG"
|
||||||
|
git push origin main
|
||||||
|
|||||||
Reference in New Issue
Block a user