Merge pull request #23 from betadots/testing #38
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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: .github/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/.github/release.yml .github/release.yml | |
- name: list files | |
run: find . | |
- name: Create Release Page | |
shell: bash | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: gh release create ${{ github.ref_name }} --generate-notes |