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 with Shell Script and Description | |
| on: | |
| push: | |
| tags: | |
| - 'v*' # Triggers on tags like v1.0.0 | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| name: Create GitHub Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set current tag | |
| run: echo "CURRENT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | |
| - name: Generate Release Notes | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| RELEASE_BODY="Attogram Games$CURRENT_TAG\n\nRepo: https://github.com/${{ github.repository }}\n" | |
| echo "RELEASENOTES<<EOF" >> $GITHUB_ENV | |
| echo -e "$RELEASE_BODY" >> $GITHUB_ENV | |
| echo "EOF" >> $GITHUB_ENV | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ env.CURRENT_TAG }} | |
| name: "Ollama Bash Lib ${{ env.CURRENT_TAG }}" | |
| body: ${{ env.RELEASENOTES }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |