Skip to content

Commit

Permalink
chore: Release creation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hdescottes committed Jun 26, 2024
1 parent 5f3de49 commit 3713c7d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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\": \").*(?=\")" >> $env:GITHUB_OUTPUT
- name: test version
run: echo ${{ steps.prep.outputs }}

# Parse changelog

echo 'changelog<<EOF' >> $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

0 comments on commit 3713c7d

Please sign in to comment.