feat: create build-tangle-hornet action #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Tangle Hornet API | |
on: | |
push: | |
tags: | |
- "v*" | |
permissions: write-all | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20.6' | |
- name: Build | |
run: CGO_ENABLED=0 go build -o bin/tangle-hornet-api main.go | |
- name: Automatic Releases | |
uses: marvinpinto/[email protected] | |
with: | |
repo_token: "${{ secrets.BUILD_BUNDLE_TOKEN }}" | |
prerelease: false | |
files: | | |
bin/tangle-hornet-api |