Update CHANGELOG.md for v1.4 #5
Workflow file for this run
This file contains 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: Create GitHub Release from Zip | |
permissions: | |
contents: write | |
on: | |
push: | |
tags: | |
- "v*" | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Find the latest tag | |
id: tag | |
run: | | |
tag_name=$(git describe --tags --abbrev=0) | |
echo "tag=$tag_name" >> $GITHUB_OUTPUT | |
- name: Extract Spoon Name from init.lua | |
id: spoon_name | |
run: | | |
spoon_name=$(grep -Eo 'obj.name\s*=\s*"[^"]+"' init.lua | cut -d'"' -f2) | |
echo "spoon_name=$spoon_name" >> $GITHUB_OUTPUT | |
- name: Build the Spoon Zip | |
run: | | |
mkdir -p dist | |
zip -r "dist/${{ steps.spoon_name.outputs.spoon_name }}.spoon.zip" . -x ".git*" ".github*" "dist/*" "Makefile" | |
shell: bash | |
- name: Upload Spoon Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: spoon-zip | |
path: dist/*.spoon.zip | |
- name: Create GitHub Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: ${{ steps.tag.outputs.tag }} | |
name: ${{ steps.tag.outputs.tag }} | |
files: dist/*.spoon.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |