Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and Release

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Build amd64 version
run: GOOS=linux GOARCH=amd64 go build -o nftables-api main.go
- name: Build arm version
run: GOOS=linux GOARCH=arm go build -o nftables-api-pi main.go
- uses: ncipollo/release-action@v1
with:
artifacts: "nftables-api,nftables-api-pi"
Binary file removed nftables-api
Binary file not shown.
Binary file removed nftables-api-pi
Binary file not shown.