build(deps): bump actions/download-artifact from 4 to 8 #28
This file contains hidden or 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 Documentation | |
| on: | |
| push: | |
| tags: | |
| - '*.*.*' | |
| branches: | |
| - main | |
| paths: | |
| - 'docs/**' | |
| - 'mkdocs.yml' | |
| - '.github/workflows/docs.yml' | |
| - '.github/workflows/_docs-build.yml' | |
| workflow_dispatch: | |
| permissions: {} | |
| concurrency: | |
| group: docs-deploy | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| permissions: | |
| contents: read | |
| uses: ./.github/workflows/_docs-build.yml | |
| deploy-stable: | |
| if: startsWith(github.ref, 'refs/tags/') | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download artifact | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: docs-site | |
| path: site | |
| - name: Deploy to GitHub Pages (stable) | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./site | |
| destination_dir: . | |
| commit_message: "docs(stable): deploy ${{ github.ref_name }}" | |
| deploy-dev: | |
| if: github.ref == 'refs/heads/main' | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download artifact | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: docs-site | |
| path: site | |
| - name: Deploy to batcontrol-dev GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| personal_token: ${{ secrets.BATCONTROL_DEV_DEPLOY_TOKEN }} | |
| external_repository: MaStr/batcontrol-dev | |
| publish_branch: main | |
| publish_dir: ./site | |
| destination_dir: docs | |
| commit_message: "docs(dev): deploy ${{ github.sha }}" |