Skip to content

Commit

Permalink
add release.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jsadowyj committed Nov 8, 2023
1 parent 85f54d0 commit 80ecef5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 44 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/create-release-pr.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Sensu Release

on:
push:
tags:
- '*'

jobs:

build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Build Go check plugins
run: make build
- name: Rename build directory
run: mv build bin
- name: Create tar archive of build directory
run: tar -czpvf sensu-go-check-plugins.tar.gz bin/
- name: Generate SHA512 sum of archive
run: sha512sum sensu-go-check-plugins.tar.gz > sha512sum.txt
- uses: ncipollo/release-action@v1
with:
artifacts: "sensu-go-check-plugins.tar.gz,sha512sum.txt"

0 comments on commit 80ecef5

Please sign in to comment.