Skip to content

ci(github): create tag and release #1

ci(github): create tag and release

ci(github): create tag and release #1

Workflow file for this run

name: Create release and tag
on:
push:
branches:
- main
jobs:
create-tag:
runs-on: ${{ matrix.runner }}
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.txt
echo "version=$(cat version.txt)" >> $GITHUB_OUTPUT
- name: Download stamusctl
uses: actions/download-artifact@v2
with:
name: stamusctl-${{matrix.os}}-${{matrix.arch}}
- name: Download stamusd
uses: actions/download-artifact@v2
with:
name: stamusd-${{matrix.os}}-${{matrix.arch}}
- name: Release snapshot
id: release-snapshot
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.get_tag_version.outputs.version }}
draft: false
prerelease: false
files: |
dist/stamusctl
dist/stamusd