mirror of
https://github.com/linuxserver/docker-documentation.git
synced 2026-02-19 18:14:15 +08:00
Try artifact deploy
This commit is contained in:
parent
d4d8a9954d
commit
d2d7ecf9c0
20
.github/workflows/deploy.yml
vendored
20
.github/workflows/deploy.yml
vendored
@ -59,6 +59,7 @@ jobs:
|
||||
needs: build
|
||||
name: Deploy docs
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.2.2
|
||||
@ -100,5 +101,22 @@ jobs:
|
||||
run: pip install -r docs/requirements.txt
|
||||
- name: Generate images-by-category.md
|
||||
run: python scripts/generate-images-by-category.py
|
||||
- name: Build documentation
|
||||
run: mkdocs build
|
||||
- name: Upload static files as artifact
|
||||
uses: actions/upload-pages-artifact@v3.0.1
|
||||
with:
|
||||
path: site/
|
||||
pages:
|
||||
permissions:
|
||||
pages: write
|
||||
id-token: write
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: deploy
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
run: mkdocs gh-deploy --force
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user