diff --git a/.github/workflows/release.yml b/.github/workflows/release-sendosc.yml similarity index 57% rename from .github/workflows/release.yml rename to .github/workflows/release-sendosc.yml index b6c0aca..74fc0ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release-sendosc.yml @@ -1,16 +1,31 @@ name: "release go binaries for multiple os/arch" on: - release: - types: [created] + push: + tags: + - 'sendosc/*' permissions: contents: write packages: write jobs: + + create-release: + name: Create sendosc release + runs-on: ubuntu-latest + steps: + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + draft: false release-multi: - name: Release Go Binary + name: create binaries and upload runs-on: ubuntu-latest strategy: matrix: @@ -29,3 +44,4 @@ jobs: goversion: "1.23.1" project_path: "./cmd/sendosc" binary_name: "sendosc" + release_tag: ${{ github.ref }}