Skip to content

ci: Moved memory credential helper to test module #145

ci: Moved memory credential helper to test module

ci: Moved memory credential helper to test module #145

Workflow file for this run

name: Docs
on:
pull_request:
branches: [ "main" ]
release:
types: ["published"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: mdBook Action
uses: peaceiris/actions-mdbook@v1.2.0
with:
mdbook-version: latest
- name: Build docs
run: mdbook build docs
- name: Upload artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v1
with:
path: ./docs/book
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
if: startsWith('refs/tags', github.ref) || github.event_name == 'workflow_dispatch'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2