Skip to content

Commit

Permalink
try new way of specifying ver for github
Browse files Browse the repository at this point in the history
  • Loading branch information
bdpedigo committed Dec 20, 2023
1 parent 9203e88 commit a2b7e0e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ jobs:

github-release:
name: Release to GitHub
needs: publish-to-pypi
needs:
- publish-to-pypi
- bump
runs-on: ubuntu-latest

permissions:
Expand All @@ -154,7 +156,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release create
'${{ github.ref_name }}'
'${{ needs.bump.outputs.VERSION }}'
--repo '${{ github.repository }}'
--notes ""
- name: Upload artifact signatures to GitHub Release
Expand All @@ -166,12 +168,14 @@ jobs:
# sigstore-produced signatures and certificates.
run: >-
gh release upload
'${{ github.ref_name }}' dist/**
'${{ needs.bump.outputs.VERSION }}' dist/**
--repo '${{ github.repository }}'
docs:
name: Release new docs version
needs: publish-to-pypi
needs:
- publish-to-pypi
- bump
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -217,11 +221,11 @@ jobs:
- name: Build and push versioned docs with mike
if: ${{ github.event.inputs.dry-run == 'false' }}
run: |
poetry run mike deploy --push --update-aliases ${{ env.new_version }} stable
poetry run mike deploy --push --update-aliases ${{ needs.bump.outputs.SHORT_VERSION }} stable
poetry run mike set-default stable --push
- name: Test build versioned docs with mike
if: ${{ github.event.inputs.dry-run == 'true' }}
run: |
poetry run mike deploy --update-aliases ${{ env.new_version }} stable
poetry run mike deploy --update-aliases ${{ needs.bump.outputs.SHORT_VERSION }} stable
poetry run mike set-default stable

0 comments on commit a2b7e0e

Please sign in to comment.