Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rainlizard authored Dec 5, 2023
1 parent 414649a commit d86e785
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,32 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# Reuse the logic for extracting version from your original workflow
- name: Extract Version & Determine Patch
id: version_info
run: |
MAJOR_MINOR=$(grep "var major_minor" Autoload/Version.gd | awk -F\" '{print $2}')
PATCH=$(git rev-list --count HEAD)
FULL_VERSION="$MAJOR_MINOR.$PATCH"
echo "FULL_VERSION=$FULL_VERSION" >> $GITHUB_OUTPUT
echo "FULL_VERSION=$FULL_VERSION" >> $GITHUB_ENV
- name: Create Git Tag
run: |
git tag $FULL_VERSION
git push origin $FULL_VERSION
# Steps to create a GitHub release using the extracted version
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.version_info.outputs.FULL_VERSION }}
release_name: Release ${{ steps.version_info.outputs.FULL_VERSION }}
tag_name: ${{ env.FULL_VERSION }}
release_name: Release ${{ env.FULL_VERSION }}
body: 'Release description here'
draft: false
prerelease: false

# Add steps for uploading build artifacts to GitHub Release
# Add steps to download artifacts from the build workflow

# Add steps to upload build artifacts to GitHub Release

# Add steps for uploading the game to itch.io
# Add steps for publishing the game to itch.io

0 comments on commit d86e785

Please sign in to comment.