Skip to content

Commit

Permalink
ci: create workflow to release docs independently if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoVazquez committed Jul 14, 2024
1 parent f8e806c commit 375a6e7
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release NPM packages

env:
NODE_OPTIONS: --max-old-space-size=6144
NX_MAX_PARALLEL: 2

on:
workflow_dispatch:

jobs:
deploy-docs:
name: '[Merge] Deploy docs to GitHub Pages'
needs: release
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Check out the source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup
uses: ./.github/actions/setup
# Uses the cache generated in the distributed step
- name: Build docs
run: pnpm exec nx build docs-lumberjack-docs-app
- name: Set up GitHub Pages
uses: actions/configure-pages@v4
- name: Upload docs to GitHub Pages
uses: actions/upload-pages-artifact@v3
with:
path: dist/packages/docs/lumberjack-docs-app/
- name: Deploy docs to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 375a6e7

Please sign in to comment.