Skip to content

Commit

Permalink
updated ci.yml for action workflow on PR to main
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeoson committed Sep 22, 2024
1 parent c8102ad commit 570ab78
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: write
Expand Down Expand Up @@ -40,7 +43,9 @@ jobs:
run: sudo apt-get install -y pngquant

- name: Build and Deploy MkDocs Site
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
mkdocs gh-deploy --force --clean
mkdocs gh-deploy --force --clean

0 comments on commit 570ab78

Please sign in to comment.