Skip to content

Commit

Permalink
Release process fixes (#2403)
Browse files Browse the repository at this point in the history
* Fix documentation of pushing tag for release
* Echo version numbers in release workflow
* Add get-version to dependencies of release
* Only create tag for prereleases
  • Loading branch information
atomb authored Jul 13, 2022
1 parent 497583f commit 72b5f69
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/publish-release-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,16 @@ jobs:
publish-release:
runs-on: macos-latest
steps:
- name: Print version
run: echo ${{ inputs.name }}
- name: Checkout Dafny
uses: actions/checkout@v2
with:
path: dafny
ref: ${{ inputs.sha }}
- uses: actions/setup-python@v1
- name: Ensure tag exists
if: ${{ inputs.prerelease }}
run: |
git tag ${{ inputs.tag_name }} -f
git push origin ${{ inputs.tag_name }} -f
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ jobs:
steps:
- id: get-version
uses: battila7/get-version-action@v2
- run: echo ${{ steps.get-version.outputs.version }}
- run: echo ${{ steps.get-version.outputs.version-without-v }}
outputs:
version: ${{ steps.get-version.outputs.version-without-v }}

publish-release:
needs: [get-version]
uses: ./.github/workflows/publish-release-reusable.yml
with:
name: ${{ needs.get-version.outputs.version }}
Expand Down
2 changes: 1 addition & 1 deletion docs/dev/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
git clone [email protected]:dafny-lang/dafny.git dafny-for-tagging
cd dafny-for-tagging
git tag v<$VER>
git push v<$VER>
git push origin v<$VER>
```

5. A GitHub action will automatically run in reaction to the tag being pushed,
Expand Down

0 comments on commit 72b5f69

Please sign in to comment.