From 52dbe52c50b380a650861331b6578ea7c45564e2 Mon Sep 17 00:00:00 2001 From: abs3nt Date: Sat, 6 Apr 2024 10:41:58 -0700 Subject: [PATCH] maybe --- .gitea/workflows/push.yaml | 2 +- .gitea/workflows/releaser.yaml | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/releaser.yaml diff --git a/.gitea/workflows/push.yaml b/.gitea/workflows/push.yaml index b5fca7f..5b4af08 100644 --- a/.gitea/workflows/push.yaml +++ b/.gitea/workflows/push.yaml @@ -1,4 +1,4 @@ -name: Build +name: build-binary run-name: ${{ gitea.actor }} is building on: [push] diff --git a/.gitea/workflows/releaser.yaml b/.gitea/workflows/releaser.yaml new file mode 100644 index 0000000..4e2b3ac --- /dev/null +++ b/.gitea/workflows/releaser.yaml @@ -0,0 +1,28 @@ +name: deployer +run-name: ${{ gitea.actor }} is releasing +on: + push: + tags: + - "*" + +jobs: + Build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup up go + uses: actions/setup-go@v5 + with: + go-version: '1.22' + cache: true + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v5 + with: + distribution: goreleaser + version: nightly + args: release --clean + env: + gitea_token: ${{ secrets.gitea_token}}