Skip to content

Commit

Permalink
Update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
moloch-- committed May 7, 2024
1 parent 5e9d4fd commit f657ce9
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions .github/workflows/autorelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,29 @@ name: Release
on:
push:
tags: ["v[0-9]+.[0-9]+.[0-9]+"]
branches: [master]
branches: [main]

jobs:

tagged-release:

name: "Tagged Release"
if: startsWith( github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
timeout-minutes: 45

steps:

- name: Go 1.18
uses: actions/setup-go@v2
with:
go-version: '^1.18'

- name: Make
run: |
make release
- name: Go 1.22
uses: actions/setup-go@v2
with:
go-version: "^1.22"

- name: Make
run: |
make release
- name: "Publish Release"
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
files: |
./release/*
- name: "Publish Release"
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
files: |
./release/*

0 comments on commit f657ce9

Please sign in to comment.