[Release] Prepare release 0.11.2 #69
Workflow file for this run
This file contains hidden or 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: Release Engine | |
| on: | |
| workflow_dispatch: # Allows manual triggering | |
| push: | |
| tags: | |
| - "v*" # Only trigger on version tags (e.g., v1.0.0) | |
| jobs: | |
| release: | |
| name: Create GitHub Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Extract version from tag | |
| id: tag | |
| run: echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | |
| - name: Extract release notes from CHANGELOG.md | |
| id: changelog | |
| run: | | |
| VERSION="${{ steps.tag.outputs.version }}" | |
| # Pull the block that starts with "## <VERSION>" and ends before the next "## " | |
| { | |
| echo 'notes<<EOF' | |
| echo "Untold Engine ${VERSION} is now available." | |
| echo "" | |
| echo "--------------------------------------------------" | |
| echo "Getting Started" | |
| echo "--------------------------------------------------" | |
| echo "" | |
| echo "Clone the repository and run the demo project:" | |
| echo "" | |
| echo "git clone https://github.com/untoldengine/UntoldEngine.git" | |
| echo "cd UntoldEngine" | |
| echo "swift run DemoGame" | |
| echo "" | |
| echo "This will build the engine and launch the demo using Swift Package Manager." | |
| echo "" | |
| echo "--------------------------------------------------" | |
| echo "Using Untold Engine in Your Project" | |
| echo "--------------------------------------------------" | |
| echo "" | |
| echo "Untold Engine can be added to your own projects as a Swift Package dependency:" | |
| echo "" | |
| echo "https://github.com/untoldengine/UntoldEngine" | |
| echo "" | |
| echo "Refer to the README for setup instructions and examples." | |
| echo "" | |
| echo "--------------------------------------------------" | |
| echo "Documentation & Resources" | |
| echo "--------------------------------------------------" | |
| echo "" | |
| echo "Repository:" | |
| echo "https://github.com/untoldengine/UntoldEngine" | |
| echo "" | |
| echo "README:" | |
| echo "https://github.com/untoldengine/UntoldEngine/blob/main/README.md" | |
| echo "" | |
| echo "GitHub Discussions:" | |
| echo "https://github.com/untoldengine/UntoldEngine/discussions" | |
| echo "" | |
| echo "--------------------------------------------------" | |
| echo "Changes in this Release" | |
| echo "--------------------------------------------------" | |
| echo "" | |
| awk "/^## ${VERSION} /{found=1;next} found && /^## /{exit} found{print}" CHANGELOG.md | |
| echo EOF | |
| } >> $GITHUB_OUTPUT | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ steps.tag.outputs.version }} | |
| name: "Release ${{ steps.tag.outputs.version }}" | |
| body: ${{ steps.changelog.outputs.notes }} | |
| draft: false | |
| prerelease: false |