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

Added release stage #162

Merged
merged 1 commit into from
Jan 25, 2023
Merged
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
27 changes: 21 additions & 6 deletions .github/workflows/merge-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,10 @@ jobs:
ref: ${{ github.head_ref }} # checkout the correct branch name
fetch-depth: 0 # fetch the whole repo history

- uses: gittools/actions/gitversion/[email protected]
- name: Setup GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.x'
# gitversion/[email protected] action omitted for brevity.
- name: Debug
run: |
ls -a

- name: Determine SemVersion
id: gitversion
Expand Down Expand Up @@ -164,7 +161,9 @@ jobs:
pre-release:
name: Create Pre-Release
runs-on: ubuntu-22.04
needs: GitVersion
needs:
- GitVersion
- deploys-test
steps:
- uses: actions/create-release@v1
env:
Expand Down Expand Up @@ -229,3 +228,19 @@ jobs:
repository: ${{ github.repository }}/${{ matrix.component }}
target: test
tags: prod

release:
name: Create Release
runs-on: ubuntu-22.04
needs:
- GitVersion
- deploys-prod
steps:
- uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.GitVersion.outputs.fullSemVer }}
release_name: Release ${{ needs.GitVersion.outputs.fullSemVer }}
draft: false
prerelease: false