LF8/.gitea/workflows/release.yml
Jan Klattenhoff 1e1305b5ad
All checks were successful
Quality Check / Tests (pull_request) Successful in 36s
Quality Check / Checkstyle Main (pull_request) Successful in 55s
feat: add release workflow for Gitea integration
2024-09-25 13:52:15 +02:00

32 lines
875 B
YAML

name: Release
on:
push:
branches:
- main
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
permissions:
contents: read # for checkout
concurrency:
group: ${{ github.ref }} # Ensure each branch has its own group
cancel-in-progress: false # Prevent new runs from canceling in-progress runs
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Create Release
uses: https://git.kjan.de/actions/semantic-release@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}