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