Skip to content

Commit

Permalink
ci: change tag check
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelrince committed Jul 2, 2024
1 parent 1fd0f1b commit e0cbdb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ jobs:
run: poetry run mike deploy -b gh-pages dev --push

# deploy github pages (release)
- if: "github.ref == startsWith(github.ref, 'refs/tags/')"
- if: startsWith(github.ref, 'refs/tags/')
id: check-version
uses: samuelcolvin/check-python-version@v4.1
with:
version_file_path: 'ecologits/__init__.py'
skip_env_check: true

- name: Deploy GitHub Pages (release)
if: "github.ref == startsWith(github.ref, 'refs/tags/')"
if: startsWith(github.ref, 'refs/tags/')
run: poetry run mike deploy -b gh-pages ${{ steps.check-version.outputs.VERSION_MAJOR_MINOR }} latest --update-aliases --push

0 comments on commit e0cbdb6

Please sign in to comment.