Skip to content

Commit 46b3e82

Browse files
Merge pull request glencoesoftware#147 from sbesson/gh_release
Add GitHub release steps
2 parents 0beb7cf + c11c6c9 commit 46b3e82

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,22 @@ jobs:
3838
path: build/distributions/*.zip
3939
retention-days: 30
4040
- name: Publish artifacts
41-
if: github.event_name != 'pull_request' && matrix.java == 11
41+
if: github.event_name != 'pull_request' && matrix.java == 11 && github.repository_owner == 'glencoesoftware'
4242
run: |
4343
./gradlew -PArtifactoryUserName=${ArtifactoryUserName} -PArtifactoryPassword=${ArtifactoryPassword} publish
44+
release:
45+
if: startsWith(github.ref, 'refs/tags')
46+
needs: build
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: actions/checkout@v4
50+
- name: Download artifacts from build
51+
uses: actions/download-artifact@v4
52+
with:
53+
name: raw2ometiff 8
54+
- name: List artifacts
55+
run: ls -R
56+
- name: Create a GitHub release
57+
run: gh release create --generate-notes "${GITHUB_REF#refs/tags/}" raw2ometiff-*
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)