Skip to content

Commit

Permalink
fix: update GitHub Actions permissions and documentation deployment w…
Browse files Browse the repository at this point in the history
…orkflow
  • Loading branch information
kuhahalong committed Dec 8, 2024
1 parent d8bc24f commit 47046d8
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
pull_request:
branches: [ main ]

permissions:
contents: write
pages: write
id-token: write

jobs:
test:
name: Test
Expand Down Expand Up @@ -63,4 +68,24 @@ jobs:
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: ./...
args: ./...

docs:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs-material mkdocs-minify-plugin
- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Deploy documentation
run: mkdocs gh-deploy --force

0 comments on commit 47046d8

Please sign in to comment.