Compare commits
3 Commits
2025.03.26
...
2025.03.26
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
22b6e37331 | ||
|
|
ad2034a833 | ||
|
|
6cb02fdf54 |
@@ -43,13 +43,36 @@ jobs:
|
||||
run: |
|
||||
echo "Tag to be created: ${{ steps.release-tag.outputs.tag }}"
|
||||
|
||||
- name: Extract latest changelog entry and version
|
||||
id: extract-changelog
|
||||
run: |
|
||||
version=$(awk '/^## /{ print $2; exit }' CHANGELOG.md)
|
||||
changelog=$(awk '/^## /{i++} i==1{print}' CHANGELOG.md)
|
||||
|
||||
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||
echo "changelog<<EOF" >> "$GITHUB_OUTPUT"
|
||||
echo "$changelog" >> "$GITHUB_OUTPUT"
|
||||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Create renamed zip file
|
||||
run: |
|
||||
REPO_NAME=$(basename -s .git `git config --get remote.origin.url`)
|
||||
VERSION=${{ steps.extract-changelog.outputs.version }}
|
||||
ZIP_NAME="${REPO_NAME}-${VERSION}.zip"
|
||||
|
||||
# Create a temporary clone without .git
|
||||
mkdir package
|
||||
git archive --format=zip HEAD -o "$ZIP_NAME"
|
||||
|
||||
echo "zip_name=$ZIP_NAME" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Create release
|
||||
id: create_release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: ${{ steps.release-tag.outputs.tag }}
|
||||
name: Release ${{ steps.release-tag.outputs.tag }}
|
||||
body: |
|
||||
${{ github.event.head_commit.message }}
|
||||
body: ${{ steps.extract-changelog.outputs.changelog }}
|
||||
files: ${{ env.zip_name }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.DS_Store
|
||||
Reference in New Issue
Block a user