Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release pipeline #17

Merged
merged 1 commit into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/build-push-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ jobs:

# Install GitVersion
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.7 # cSpell: ignore gittools
uses: gittools/actions/gitversion/setup@v3.0.0 # cSpell: ignore gittools
with:
versionSpec: "6.x"

# Determine the version using GitVersion
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v0.9.7
uses: gittools/actions/gitversion/execute@v3.0.0

# Setup Node.js environment
- name: Use Node.js
Expand Down Expand Up @@ -82,7 +82,14 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This is needed for the gh cli

# Create a release if on a release branch
# Create a preview tag if on the main branch
- name: Create Preview Tag
if: github.ref == 'refs/heads/main'
run: |
git tag v${{ steps.gitversion.outputs.semVer }}
git push origin v${{ steps.gitversion.outputs.semVer }}

# Create Release if on a release branch
- name: Create Release
if: startsWith(github.ref, 'refs/heads/releases/')
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Create Release Branch
on:
push:
tags:
- "v*"
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
create-release-branch:
Expand Down
Loading