Files
rdns-go/.gitea/workflows/release.yml
tchivert c6b0ca5d59
package / apt (push) Failing after 7s
docker / docker (push) Successful in 2m32s
add git release pipeline
2025-07-20 11:34:41 +02:00

44 lines
1.0 KiB
YAML

name: package
on:
push:
tags:
- 'v[0-9]+.[0-9]+'
jobs:
apt:
runs-on: ubuntu-latest
steps:
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '>=1.20'
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # all history for all branches and tags
- name: Install dependencies
run: go mod download
- name: Linux build amd64
run: GOOS=linux GOARCH=amd64 go build -o bin/rdns-linux-amd64 ./src
- name: Linux build arm64
run: GOOS=linux GOARCH=arm64 go build -o bin/rdns-linux-arm64 ./src
- name: Darwin build amd64
run: GOOS=darwin GOARCH=amd64 go build -o bin/rdns-darwin-amd64 ./src
- name: Darwin build arm64
run: GOOS=darwin GOARCH=arm64 go build -o bin/rdns-darwin-arm64 ./src
- name: Create release
uses: https://gitea.com/actions/release-action@main
with:
files: |-
bin/**
api_key: "${{ secrets.RELEASE_TOKEN }}"