Skip to content

Merge pull request #20 from betadots/testing #33

Merge pull request #20 from betadots/testing

Merge pull request #20 from betadots/testing #33

Workflow file for this run

---
on:
push:
tags:
- '*'
name: Create GitHub release 🚀
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Prüfe, ob release.yml existiert
id: check_file
run: |
if [ ! -f .github/release.yml ]; then
echo "RELEASE_YML_MISSING=true" >> $GITHUB_OUTPUT
fi
- name: Checkout Upstream-Repository (falls release.yml fehlt)
uses: actions/checkout@v4
if: steps.check_file.outputs.RELEASE_YML_MISSING == 'true'
with:
repository: "${{ github.repository_owner }}/.github"
path: upstream
sparse-checkout: config/release.yml
sparse-checkout-cone-mode: false
- name: Kopiere release.yml (falls vorhanden)
if: steps.check_file.outputs.RELEASE_YML_MISSING == 'true'
run: |
cp upstream/config/release.yml .github/release.yml
- name: Create Release Page
shell: bash
env:
GH_TOKEN: ${{ github.token }}
run: gh release create ${{ github.ref_name }} --generate-notes