This commit is contained in:
29
.gitea/workflows/release_fedora-image.yml
Normal file
29
.gitea/workflows/release_fedora-image.yml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
name: make-a-release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: fedora-cloud-42
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
container:
|
||||||
|
image: git.phyllo.me/devops/fedora-runner-image:latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Create release notes file
|
||||||
|
run: |
|
||||||
|
echo "Release notes for version 1.0.0" > release-notes.txt
|
||||||
|
echo "=========================" >> release-notes.txt
|
||||||
|
echo "" >> release-notes.txt
|
||||||
|
echo "Changes in this release:" >> release-notes.txt
|
||||||
|
echo "- add a new release workflow " >> release-notes.txt
|
||||||
|
|
||||||
|
- uses: https://git.phyllo.me/actions/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
release-notes.txt
|
||||||
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
name: release
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- '*'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
runs-on: ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: https://git.phyllo.me/actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: https://git.phyllo.me/actions/action-gh-release@v2
|
|
||||||
with:
|
|
||||||
files: |-
|
|
||||||
bin/**
|
|
||||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user