Update .gitea/workflows/release.yml
This commit is contained in:
parent
b575cd92a2
commit
7cdc748425
@ -13,31 +13,34 @@ jobs:
|
|||||||
name: Tag release
|
name: Tag release
|
||||||
uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/release-with-tag.yaml@main
|
uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/release-with-tag.yaml@main
|
||||||
|
|
||||||
create_release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: tag
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4.2.2
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{ needs.tag.outputs.tag_name }}
|
|
||||||
- name: Create dummy file
|
|
||||||
run: echo "${{ needs.tag.outputs.changelog }}" > changelog.md
|
|
||||||
- name: Release
|
|
||||||
id: use-go-action
|
|
||||||
uses: https://gitea.com/actions/release-action@main
|
|
||||||
with:
|
|
||||||
files: changelog.md
|
|
||||||
api_key: '${{ secrets.ACTIONS_TOKEN }}'
|
|
||||||
title: ${{ needs.tag.outputs.tag_name }}
|
|
||||||
body: ${{ needs.tag.outputs.changelog }}
|
|
||||||
|
|
||||||
# create_release:
|
# create_release:
|
||||||
# name: Create Release
|
# runs-on: ubuntu-latest
|
||||||
# # needs: test
|
# needs: tag
|
||||||
# uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/create-release.yml@main
|
# steps:
|
||||||
# secrets:
|
# - uses: actions/checkout@v4.2.2
|
||||||
# ACTIONS_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
|
# with:
|
||||||
|
# fetch-depth: 0
|
||||||
|
# ref: ${{ needs.tag.outputs.tag_name }}
|
||||||
|
# - name: Create dummy file
|
||||||
|
# run: echo "${{ needs.tag.outputs.changelog }}" > changelog.md
|
||||||
|
# - name: Release
|
||||||
|
# id: use-go-action
|
||||||
|
# uses: https://gitea.com/actions/release-action@main
|
||||||
|
# with:
|
||||||
|
# files: changelog.md
|
||||||
|
# api_key: '${{ secrets.ACTIONS_TOKEN }}'
|
||||||
|
# title: ${{ needs.tag.outputs.tag_name }}
|
||||||
|
# body: ${{ needs.tag.outputs.changelog }}
|
||||||
|
|
||||||
|
create_release:
|
||||||
|
name: Create Release
|
||||||
|
needs: tag
|
||||||
|
uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/create-release-preexisting-tag.yaml@main
|
||||||
|
with:
|
||||||
|
tag: ${{ needs.tag.outputs.tag_name }}
|
||||||
|
body: ${{ needs.tag.outputs.changelog }}
|
||||||
|
secrets:
|
||||||
|
ACTIONS_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
|
||||||
|
|
||||||
print_release:
|
print_release:
|
||||||
name: Print Release
|
name: Print Release
|
||||||
|
Loading…
x
Reference in New Issue
Block a user