Skip to content

Commit

Permalink
ci(github): create tag and release
Browse files Browse the repository at this point in the history
  • Loading branch information
lanathlor committed Dec 4, 2024
1 parent b96a08f commit 3932101
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,43 @@ jobs:
with:
name: stamusd-${{matrix.os}}-${{matrix.arch}}
path: dist/*

create-tag:
runs-on: ${{ matrix.runner }}
needs: [build-stamusctl, build-stamusdaemon]
strategy:
matrix:
include:
- { runner: ubuntu-latest, os: linux, arch: amd64, go-version: 1.22 }

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: get tag version
id: get_tag_version
run: |
cat VERSION
echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT
- name: Download stamusctl
uses: actions/download-artifact@v4
with:
name: stamusctl-${{matrix.os}}-${{matrix.arch}}

- name: Download stamusd
uses: actions/download-artifact@v4
with:
name: stamusd-${{matrix.os}}-${{matrix.arch}}

- name: Release snapshot
id: release-snapshot
uses: softprops/action-gh-release@v2
if: github.ref == 'refs/heads/main'
with:
tag_name: ${{ steps.get_tag_version.outputs.version }}
draft: false
prerelease: false
files: |
stamusctl-${{matrix.os}}-${{matrix.arch}}
stamusd-${{matrix.os}}-${{matrix.arch}}
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#

0 comments on commit 3932101

Please sign in to comment.