Skip to content

Commit

Permalink
ci: deploy docs only in main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
futrime committed Jan 4, 2025
1 parent ad01854 commit 2f23112
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
on:
push:
pull_request:
paths:
- .github/workflows/build.yml
- src/**
- src-server/**
- src-client/**
- src-test/**
- xmake.lua
pull_request:
push:
paths:
- .github/workflows/build.yml
- src/**
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
on:
pull_request:
paths:
- .github/workflows/build_docs.yml
- docs/**
- src/**/*.h
push:
paths:
- .github/workflows/build_docs.yml
- docs/**
- src/**/*.h
- Doxyfile
- DoxygenLayout.xml
- mkdocs.yml
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -75,7 +77,7 @@ jobs:
path: site/

deploy:
if: github.ref == 'refs/heads/develop' && github.event_name == 'push'
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
needs:
- merge
permissions:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- id: extract-release-notes
uses: ffurrer2/extract-release-notes@v2

- uses: softprops/action-gh-release@v1
- uses: softprops/action-gh-release@v2
with:
body: |-
${{ steps.extract-release-notes.outputs.release_notes }}
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
run: |
echo sha256=$(sha256sum levilamina-${{ matrix.mode }}-windows-x64.zip | awk '{print $1}') >> $GITHUB_OUTPUT
- uses: softprops/action-gh-release@v1
- uses: softprops/action-gh-release@v2
with:
append_body: true
body: |-
Expand Down

0 comments on commit 2f23112

Please sign in to comment.