Update .github/workflows/docs.yml
This commit is contained in:
37
.github/workflows/docs.yml
vendored
37
.github/workflows/docs.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Deploy GitHub Pages
|
name: Deploy Gitea Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -8,17 +8,8 @@ on:
|
|||||||
- 'mkdocs.yml'
|
- 'mkdocs.yml'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: "pages"
|
|
||||||
cancel-in-progress: false
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -32,18 +23,12 @@ jobs:
|
|||||||
|
|
||||||
- run: mkdocs build
|
- run: mkdocs build
|
||||||
|
|
||||||
- uses: actions/configure-pages@v5
|
- name: Deploy to Gitea Pages
|
||||||
|
run: |
|
||||||
- uses: actions/upload-pages-artifact@v3
|
cd site
|
||||||
with:
|
git init
|
||||||
path: './site'
|
git config user.name "github-actions"
|
||||||
|
git config user.email "actions@forteapps.net"
|
||||||
deploy:
|
git add .
|
||||||
needs: build
|
git commit -m "Deploy docs"
|
||||||
environment:
|
git push --force "https://x-token:${{ secrets.PAGES_TOKEN }}@git.forteapps.net/Forte/launchpad.git" HEAD:gitea-pages
|
||||||
name: github-pages
|
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- id: deployment
|
|
||||||
uses: actions/deploy-pages@v4
|
|
||||||
|
|||||||
Reference in New Issue
Block a user