Skip to content

Commit

Permalink
add releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
labi-le committed Apr 27, 2024
1 parent a4ea952 commit 85090a9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 38 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/go-ossf-slsa3-publish.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/releaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: releaser

on:
workflow_dispatch:
pull_request:
push:
tags: ['v*']

permissions:
contents: write
id-token: write
packages: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
run: echo "flags=--snapshot" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: 1.22
cache: true

0 comments on commit 85090a9

Please sign in to comment.