From 9c24e3a7888fba65bf9434b205b3968a30453e6a Mon Sep 17 00:00:00 2001 From: hudescottes Date: Thu, 27 Jun 2024 00:06:28 +0200 Subject: [PATCH] chore: Release creation workflow --- .github/workflows/release.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..bffec7f1 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: Release creation + +on: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Prep Release + id: prep + run: curl --silent "https://api.github.com/repos/hdescottes/GdxGame/releases/latest" + | grep -Po "(?<=\"tag_name\": \").*(?=\")" >> $VERSION + + echo $VERSION + + # Parse changelog + + echo 'changelog<> $GITHUB_ENV + echo $CHANGELOG >> $GITHUB_ENV + echo 'EOF' >> $GITHUB_ENV + +# - name: Create Release +# id: create_release +# uses: actions/create-release@master +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# tag_name: ${{ env.RELEASE_VERSION }} +# release_name: Release ${{ env.RELEASE_VERSION }} +# body: ${{ env.GITHUB_ENV.changelog }} +# draft: false +# prerelease: true \ No newline at end of file