From c33a31d2bd1235b25ba7f2a583f461fdc67483e7 Mon Sep 17 00:00:00 2001 From: lovezsh <1942314542@qq.com> Date: Sun, 25 Aug 2024 19:57:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0gitea=20action=20flow?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/release.yml diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..e19bca8 --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,25 @@ +on: + push: + tags: + - v* +jobs: + release: + runs-on: lego + steps: + - name: checkout + uses: http://${{secrets.ACTION_ACCESS_GIT}}@git.lovezsh.com/actions/checkout@v4 + + - name: build + uses: https://github.com/actions/setup-go@v5 + with: + go-version: "1.22.4" + run: | + GOOS=linux GOARCH=amd64 go build -o nip cmd/main.go + GOOS=windows GOARCH=amd64 go build -o nip.exe cmd/main.go + + - name: upload + run: | + curl --help all + + +