Skip to content

chore(ci): update gh action versions #171

chore(ci): update gh action versions

chore(ci): update gh action versions #171

Workflow file for this run

name: doc
on:
push:
branches: ['**']
paths:
- "crates/*/doc/**"
- "doc/**"
- ".github/workflows/doc.yml"
pull_request:
branches: [main]
paths:
- "crates/*/doc/**"
- "doc/**"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: asciidoctor/docker-asciidoctor
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1
- name: Build docs
run: |
make -C doc
# notify github this isn't a jekyll site
touch target/doc/cli/html/.nojekyll
# upload-pages-artifact doesn't work with busybox tar provided by the container
- name: Install GNU tar
if: ${{ github.ref_name == 'main' && github.repository == 'radhermit/bugbite' }}
run: apk add tar
- name: Upload artifact
if: ${{ github.ref_name == 'main' && github.repository == 'radhermit/bugbite' }}
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 #v5.0.0
with:
path: target/doc/cli/html
deploy:
if: ${{ github.ref_name == 'main' && github.repository == 'radhermit/bugbite' }}
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 #v5.0.1