Skip to content

Commit

Permalink
Merge pull request #180 from gchq/workflow/release
Browse files Browse the repository at this point in the history
Fix Release Workflow
  • Loading branch information
GCHQDeveloper42 authored Jan 26, 2024
2 parents 06d4afd + 8bc3dff commit d17fa90
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
- name: Create Release Branch
run: |
git checkout -b release/${{ inputs.releaseVersion }}
git config --global user.name "ReleaseBot"
git config --global user.email "release-bot"
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
- name: Build
run: mvn -B package --file pom.xml
Expand All @@ -48,6 +48,8 @@ jobs:
run: mvn -Dtag=v${{ inputs.releaseVersion }} release:prepare -DautoVersionSubmodules -DreleaseVersion=${{ inputs.releaseVersion }} -DdevelopmentVersion=${{ inputs.developmentVersion }}

- name: Publish
env:
GITHUB_TOKEN: ${{ github.token }}
run: mvn release:perform

- name: Merge release into main
Expand All @@ -59,7 +61,7 @@ jobs:
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ github.token }} # This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ github.token }}
with:
tag_name: ${{ inputs.releaseVersion }}
release_name: Magma Core v${{ inputs.releaseVersion }}
Expand Down

0 comments on commit d17fa90

Please sign in to comment.