Compare commits

..
Author SHA1 Message Date
jknapp 554e2ba93e Merge pull request 'Adding Feature Request for single product highlight' (#7) from feature-single-product into main
Create Release / build (push) Successful in 3s
Reviewed-on: #7
2025-05-18 17:27:06 +00:00
2 changed files with 16 additions and 13 deletions
+14 -9
View File
@@ -25,6 +25,7 @@ jobs:
echo "version=$(date +'%Y.%m.%d-%H%M')" >> $GITHUB_OUTPUT
fi
# NEW STEP: Generate release notes from commits
- name: Generate release notes
id: release_notes
run: |
@@ -39,11 +40,18 @@ jobs:
COMMITS=$(git log --pretty=format:"* %s (%h)" ${LATEST_TAG}..HEAD --no-merges)
fi
# Create release notes with header (without encoding newlines)
# Escape newlines and special characters for GitHub Actions
COMMITS="${COMMITS//'%'/'%25'}"
COMMITS="${COMMITS//$'\n'/'%0A'}"
COMMITS="${COMMITS//$'\r'/'%0D'}"
# Create release notes with header
NOTES="## What's New in ${{ steps.get_version.outputs.version }}%0A%0A"
NOTES+="$COMMITS"
# Output to GitHub Actions
echo "notes<<EOF" >> $GITHUB_OUTPUT
echo "## What's New in ${{ steps.get_version.outputs.version }}" >> $GITHUB_OUTPUT
echo "" >> $GITHUB_OUTPUT
echo "$COMMITS" >> $GITHUB_OUTPUT
echo "$NOTES" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Update plugin version
@@ -55,16 +63,13 @@ jobs:
- name: Create ZIP archive
run: |
mkdir -p /tmp/fourthwall-store-embed
rsync -av --exclude=".git" --exclude=".gitea" --exclude="build" . /tmp/fourthwall-store-embed/
cd /tmp
zip -r $GITEA_WORK_DIR/fourthwall-store-embed.zip fourthwall-store-embed
zip -r fourthwall-store-embed.zip . -x ".git/*" ".gitea/*"
- name: Create Release
uses: softprops/action-gh-release@v2
with:
token: "${{ secrets.REPO_TOKEN }}"
title: "Fourthwall-store-embed Release ${{ steps.get_version.outputs.version }}"
title: Fourthwall-store-embed Release ${{ steps.get_version.outputs.version }}
tag_name: ${{ steps.get_version.outputs.version }}
body: "${{ steps.release_notes.outputs.notes }}"
files: |
+2 -4
View File
@@ -35,10 +35,8 @@ jobs:
- name: Create plugin zip
run: |
mkdir -p /tmp/fourthwall-store-embed
rsync -av --exclude=".git" --exclude=".gitea" --exclude="build" . /tmp/fourthwall-store-embed/
cd /tmp
zip -r $GITEA_WORK_DIR/fourthwall-store-embed.zip fourthwall-store-embed
mkdir -p build
zip -r build/fourthwall-store-embed.zip . -x ".git/*" ".gitea/*" "build/*" "*.git*"
- name: Upload zip to release
uses: actions/upload-release-asset@v1