Skip to content

Commit

Permalink
ci: Add GitHub Action for releasing artifacts (#39)
Browse files Browse the repository at this point in the history
* Add workflow to build artifacts on version-like tag pushes

* Update perms to allow release workflow to write repo contents

* Add workflow step for creating draft releases

* Update version tag matching for non-unit digits in each part
  • Loading branch information
agrski authored Jun 4, 2023
1 parent c631863 commit 90a9f0b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: create-release
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+*
jobs:
create-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Golang environment
uses: actions/setup-go@v4
- name: Build artifacts
run: make build -o lint
- name: Create draft release
uses: softprops/action-gh-release@v1
with:
draft: true
files: bin/*
generate_release_notes: true
fail_on_unmatched_files: true

0 comments on commit 90a9f0b

Please sign in to comment.