refactor: Fix session id in logs for some services (#41) #42
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 to Pages | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
generate-docs: | |
name: Generate Docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- run: npm i -g pnpm @antfu/ni | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
cache: "pnpm" | |
cache-dependency-path: ".docs/pnpm-lock.yaml" | |
- name: Install dependencies | |
run: cd .docs && nci | |
- name: Install Doxygen | |
run: sudo apt-get install doxygen -y && sudo apt install graphviz -y | |
shell: bash | |
- name: Generate Doxygen Documentation | |
run: doxygen tools/Doxyfile | |
shell: bash | |
- name: Create .nojekyll | |
run: touch .nojekyll | |
shell: bash | |
- name: Use NODE_ENV=production | |
run: echo "NODE_ENV=production" >> $GITHUB_ENV | |
- name: Set the site URL | |
run: echo "NUXT_PUBLIC_SITE_URL=https://aneoconsulting.github.io/ArmoniK.Extensions.Cpp" >> $GITHUB_ENV | |
- name: Static HTML export with Nuxt | |
run: cd .docs && nr generate | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: .docs/.output/public | |
deploy: | |
needs: generate-docs | |
name: Deploy to GitHub Pages | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@9dbe3824824f8a1377b8e298bafde1a50ede43e5 |