Skip to content

Commit

Permalink
ci: include windows, better condition for GH pages deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
qartik committed Jan 20, 2024
1 parent 8e52dea commit 3fa5e40
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ on:
jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
include:
- os: ubuntu-latest
python-version: "3.12"
deploy-gh-pages: true
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
Expand All @@ -39,7 +44,7 @@ jobs:
make docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.python-version == '3.11' }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.deploy-gh-pages }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 3fa5e40

Please sign in to comment.