Skip to content

Commit

Permalink
Change the trigger to published releases
Browse files Browse the repository at this point in the history
  • Loading branch information
nightlark committed Oct 11, 2024
1 parent 90b98fd commit 0cae683
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Test matHELICS

on:
push:
branches:
- main
tags:
- 'v*.*.*'
pull_request:
branches:
- main
release:
types:
- published
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
command: addpath('tests'),addpath('helics'),runAllTests

release:
if: startsWith(github.ref, 'refs/tags/')
if: github.event_name == 'release' && github.event.action == 'published'
runs-on: ubuntu-latest
needs: ci-test
steps:
Expand All @@ -71,11 +71,10 @@ jobs:
with: # no name specified, so all artifacts will be downloaded
path: ./artifacts
merge-multiple: true
- name: List files in artifacts
run: ls ./artifacts
- name: Create Release
uses: softprops/action-gh-release@v2
with:
make_latest: true
tag_name: ${{ github.ref }}
name: ${{ github.ref }}
body: Release for [HELICS ${{ github.ref }}](https://github.com/GMLC-TDC/HELICS/releases/tag/${{ github.ref }})
files: ./artifacts/matHELICS-${{ matrix.os }}.*
body: Release for [HELICS ${{ github.ref_name }}](https://github.com/GMLC-TDC/HELICS/releases/tag/${{ github.ref_name }})
files: ./artifacts/matHELICS-*

0 comments on commit 0cae683

Please sign in to comment.