chore: forgejo workflows
This commit is contained in:
parent
75e8388ba1
commit
211812427b
2 changed files with 34 additions and 1 deletions
33
.forgejo/workflows/create-release.yaml
Normal file
33
.forgejo/workflows/create-release.yaml
Normal file
|
@ -0,0 +1,33 @@
|
|||
name: Create release on tag push
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'release/*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Create mod release
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Get release body
|
||||
run: |
|
||||
echo "release_body=$(cat CHANGELOG.md)" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '>=1.20.1'
|
||||
|
||||
- name: Draft release
|
||||
uses: https://gitea.com/actions/release-action@main
|
||||
with:
|
||||
body: ${{ env.release_body }}
|
||||
draft: true
|
||||
api_key: '${{ secrets.RELEASE_TOKEN }}'
|
2
.github/workflows/create-release.yaml
vendored
2
.github/workflows/create-release.yaml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup MSBuild
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
|
|
Loading…
Reference in a new issue