Skip to content

Commit

Permalink
Only deploy docs when release is tagged
Browse files Browse the repository at this point in the history
We only upload docs when a release is tagged, same constrain has to be
applied also to the deploy to avoid artifact not found errors.

While at it also schema checking the changed workflow file.
  • Loading branch information
dbast committed Nov 15, 2024
1 parent 39d66fb commit 5d2e4bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ jobs:
anaconda --verbose --token $ANACONDA_TOKEN upload --user ctools $LABEL conda-bld/*/*.tar.bz2 --force
deploy:
if: startsWith(github.ref, 'refs/tags/')
needs: upload

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
Expand Down
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,9 @@ repos:
rev: 7.1.1
hooks:
- id: flake8

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.4
hooks:
- id: check-dependabot
- id: check-github-workflows

0 comments on commit 5d2e4bf

Please sign in to comment.