Bump pip from 24.0 to 24.3.1 in /{{cookiecutter.project_slug}}/.github/workflows #3176
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: Publish ADR Documentation via Log4brains | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- main # forward-compatibility with new GitHub default branch naming | |
- master # backward-compatibility with old GitHub default branch naming | |
workflow_dispatch: | |
pull_request: | |
env: | |
BUILD_DIR: .log4brains/out | |
BENCHMARKS_DIR: dev | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
contents: write | |
pages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false # required by JamesIves/github-pages-deploy-action | |
fetch-depth: 0 # required by Log4brains to work correctly (needs the whole Git history) | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "14" | |
- name: Install and Build Log4brains | |
run: | | |
npm install -g log4brains | |
log4brains build \ | |
--basePath "/${GITHUB_REPOSITORY#*/}/adl" \ | |
--out "${BUILD_DIR}/adl" && \ | |
touch "${BUILD_DIR}/.nojekyll" || true | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4.6.0 | |
with: | |
branch: gh-pages | |
folder: ${{ env.BUILD_DIR }} | |
clean-exclude: ${{ env.BENCHMARKS_DIR }} |