Merge pull request #2644 from doc4d/gk/router #8138
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy | |
on: | |
push: | |
branches: [main] | |
jobs: | |
workflow-check: | |
uses: ./.github/workflows/workflow-syntax-check.yml | |
workflow-build: | |
uses: ./.github/workflows/workflow-build.yml | |
workflow-static: | |
uses: ./.github/workflows/workflow-build-static.yml | |
gh-release: | |
needs: [workflow-build] | |
name: 'Deploy website' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v4 | |
- name: Publish | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build/ | |
publish-release: | |
needs: [workflow-static] | |
name: 'Publish Release' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v4 | |
with: | |
pattern: static-doc-* | |
- name: Upload Release Asset | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
static-doc-* | |
token: ${{ secrets.GITHUB_TOKEN }} | |
prerelease: true | |