mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
ci: Update workflows
This commit is contained in:
parent
cd09fe983e
commit
1618705c6d
7 changed files with 104 additions and 58 deletions
23
.github/workflows/docs-release.yaml
vendored
23
.github/workflows/docs-release.yaml
vendored
|
@ -23,22 +23,12 @@ jobs:
|
|||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Generate Token
|
||||
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
|
||||
id: app-token
|
||||
with:
|
||||
app-id: ${{ secrets.LAB_ASSISTANT_APP_ID }}
|
||||
private-key: ${{ secrets.LAB_ASSISTANT_APP_KEY }}
|
||||
|
||||
- name: Checkout main branch
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
token: ${{ steps.app-token.outputs.token }}
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
|
||||
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
||||
with:
|
||||
python-version: 3.x
|
||||
|
||||
- name: Install requirements
|
||||
run: pip install -r docs/requirements.txt
|
||||
|
@ -46,6 +36,13 @@ jobs:
|
|||
- name: Build and publish docs
|
||||
run: mkdocs build -f .ci/mkdocs/mkdocs.yml
|
||||
|
||||
- name: Generate Token
|
||||
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
|
||||
id: app-token
|
||||
with:
|
||||
app-id: ${{ secrets.LAB_ASSISTANT_APP_ID }}
|
||||
private-key: ${{ secrets.LAB_ASSISTANT_APP_KEY }}
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
|
@ -71,14 +68,16 @@ jobs:
|
|||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
path: src
|
||||
persist-credentials: false
|
||||
|
||||
- name: Checkout gh-pages branch
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
ref: gh-pages
|
||||
path: gh-pages
|
||||
persist-credentials: false
|
||||
|
||||
- name: Deploy changes to GitHub Pages
|
||||
- name: Deploy to GitHub Pages
|
||||
uses: ./src/.github/actions/publish-folder-to-pages
|
||||
with:
|
||||
path: gh-pages/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue