Skip to content

Commit

Permalink
Merge pull request #1405 from ral-facilities/update-release-workflow
Browse files Browse the repository at this point in the history
Update release workflow
  • Loading branch information
louise-davies authored Jul 23, 2024
2 parents 931cf7d + 332b8d4 commit d53b2fc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
changelog:
categories:
- title: Features
labels:
- '*'
exclude:
labels:
- dependencies
- title: Dependencies
labels:
- dependencies
10 changes: 6 additions & 4 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
branches:
- main
- develop
tags: '*'
tags:
- '*'

jobs:
build:
Expand Down Expand Up @@ -56,11 +57,12 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' }}

- name: Create/update release
uses: johnwbyrd/update-release@1d5ec4791e40507e5eca3b4dbf90f0b27e7e4979 # v1.0.0
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: ./scigateway-${{ env.TAG_NAME }}.tar.gz
release: Release ${{ env.TAG_NAME }}
tag: ${{ env.TAG_NAME }}
name: ${{ env.TAG_NAME }}
tag_name: ${{ env.TAG_NAME }}
prerelease: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' }}
draft: false
generate_release_notes: true

0 comments on commit d53b2fc

Please sign in to comment.