Skip to content

Commit

Permalink
Merge pull request #1660 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 8cb754d + 29dbc01 commit 1e141a4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 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
15 changes: 10 additions & 5 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 @@ -72,11 +73,15 @@ 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: ./datagateway-dataview-${{ env.TAG_NAME }}.tar.gz ./datagateway-download-${{ env.TAG_NAME }}.tar.gz ./datagateway-search-${{ env.TAG_NAME }}.tar.gz
release: Release ${{ env.TAG_NAME }}
tag: ${{ env.TAG_NAME }}
files: |
./datagateway-dataview-${{ env.TAG_NAME }}.tar.gz
./datagateway-download-${{ env.TAG_NAME }}.tar.gz
./datagateway-search-${{ env.TAG_NAME }}.tar.gz
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 1e141a4

Please sign in to comment.