chore(deps): Bump alpine from 3.19.4 to 3.20.3 in /docs (#668) #199
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-docs | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'docs/**' | |
permissions: | |
contents: read | |
pages: write | |
deployments: write | |
id-token: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
render-diagrams: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Export drawio files to png files | |
uses: rlespinasse/[email protected] | |
with: | |
path: docs | |
format: png | |
transparent: true | |
output: source/images | |
action-mode: all | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
name: images | |
path: ./docs/source/images | |
build-docs: | |
runs-on: ubuntu-latest | |
needs: render-diagrams | |
env: | |
BUNDLE_GEMFILE: ${{ github.workspace }}/docs/Gemfile | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Download images from render-diagrams | |
uses: actions/download-artifact@v3 | |
with: | |
name: images | |
path: ./docs/source/images | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1 | |
bundler-cache: true | |
- name: Build 'public' folder ready for deployment | |
working-directory: ./docs | |
run: bundle exec middleman build | |
- name: Publish | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
PATH: ./public | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build-docs | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy | |
uses: actions/deploy-pages@v2 | |
id: deployment | |
with: | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} |