modular-avatar/.github/workflows/deploy-pages.yml

45 lines
936 B
YAML
Raw Normal View History

2022-09-10 08:18:35 +08:00
name: Deploy documentation
2022-09-08 11:46:13 +08:00
on:
push:
branches:
2022-09-09 11:37:40 +08:00
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
2022-09-08 11:46:13 +08:00
jobs:
2022-09-09 12:01:14 +08:00
build-docs:
2022-09-10 08:18:35 +08:00
name: Build documentation
uses: bdunderscore/modular-avatar/.github/workflows/build-test-docs.yml@main
deploy-docs:
needs: build-docs
2022-09-08 11:46:13 +08:00
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
2022-09-10 08:18:35 +08:00
2022-09-08 11:46:13 +08:00
steps:
2022-09-10 08:18:35 +08:00
- name: Download artifact
uses: actions/download-artifact@v2
2022-09-08 11:46:13 +08:00
with:
2022-09-10 08:18:35 +08:00
name: docs
path: docs/build
2022-09-08 11:46:13 +08:00
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
2022-09-09 11:37:40 +08:00
path: docs/build
2022-09-08 11:46:13 +08:00
- name: Deploy to GitHub Pages
id: deployment
2022-09-09 11:37:40 +08:00
uses: actions/deploy-pages@v1