Skip to content

Commit c313597

Browse files
authored
Make Publish workflow branch-agnostic (#482)
This change makes the workflow branch-agnostic and ensures we are building exactly what the version tag points to, regardless of which branch it was created from. It removes the former limitation to the `main` branch.
1 parent 78f3101 commit c313597

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/Publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
outputs:
2020
VERSION: ${{ steps.set_version.outputs.VERSION }}
2121
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0 # Fetch all history for all tags and branches
26+
2227
- name: Verify tag exists
2328
run: |
2429
git fetch --tags --quiet

0 commit comments

Comments
 (0)