Skip to content

Commit

Permalink
Workflows: automatically create GitHub release with all the artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekkow committed Oct 29, 2024
1 parent 9a77fc3 commit 52cd5b0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/go-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Tagged Go build

on:
push:
tags:
- 'v*'

jobs:
go:
name: Go
uses: ./.github/workflows/go.yml

release:
name: Release
runs-on: ubuntu-latest
needs: [go]
steps:
- name: Download artifacts
uses: actions/download-artifact@v4

- name: Create release
uses: softprops/action-gh-release@v2
with:
files: dist/*
fail_on_unmatched_files: true
generate_release_notes: true
1 change: 1 addition & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_call:

jobs:
build:
Expand Down

0 comments on commit 52cd5b0

Please sign in to comment.