This commit is contained in:
@@ -1,20 +1,27 @@
|
|||||||
name: Release
|
name: release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Create Gitea Release
|
|
||||||
uses: gitea.com/actions/gitea-release-action@main
|
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITEA_TOKEN }}
|
fetch-depth: 0
|
||||||
tag_name: ${{ gitea.ref_name }}
|
- name: setup go
|
||||||
name: ${{ gitea.ref_name }}
|
uses: https://github.com/actions/setup-go@v4
|
||||||
body: "Automated release"
|
with:
|
||||||
|
go-version: '>=1.20.1'
|
||||||
|
- name: go build
|
||||||
|
run: go build -o bin/myapp
|
||||||
|
- name: Use Go Action
|
||||||
|
id: use-go-action
|
||||||
|
uses: https://gitea.com/actions/release-action@main
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
bin/**
|
||||||
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
||||||
Reference in New Issue
Block a user