Create release #6
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
name: Create release | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
create-files: | |
name: Create files | |
uses: ./.github/workflows/main.yml | |
with: | |
# settings for the output file | |
OUTPUT_NAME: 'update' | |
OUTPUT_EXT: 'txt' | |
OUTPUT_APPEND_VERSION: false | |
OUTPUT_APPEND_BUILD_NUMBER: false | |
release: | |
name: Create a release | |
needs: create-files | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v2 | |
- name: Get version information from version file | |
run: | | |
VER=$(cat VERSION) | |
echo "VERSION=$VER" >> $GITHUB_ENV | |
- name: Test | |
run: ls | |
- name: Create release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ github.ref_name }} | |
run: | | |
gh release create "$VERSION" 'update.txt#Der aktuelle Stand' \ | |
--repo="$GITHUB_REPOSITORY" \ | |
--title="${tag#1}" \ | |
--generate-notes |