mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-09 09:42:26 +00:00
make the release action append full changelog (commits) since last release
This commit is contained in:
parent
2e50173c45
commit
f24015e3c5
1 changed files with 6 additions and 1 deletions
7
.github/workflows/release.yaml
vendored
7
.github/workflows/release.yaml
vendored
|
|
@ -20,6 +20,7 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
|
|
@ -41,7 +42,7 @@ jobs:
|
||||||
zip -r DribbblishDynamic_v${{ github.event.inputs.version }}.zip *
|
zip -r DribbblishDynamic_v${{ github.event.inputs.version }}.zip *
|
||||||
mv DribbblishDynamic_v${{ github.event.inputs.version }}.zip ..
|
mv DribbblishDynamic_v${{ github.event.inputs.version }}.zip ..
|
||||||
|
|
||||||
- name: Read CHANGELOG.md
|
- name: Read CHANGELOG.md and get latest Tag
|
||||||
run: |
|
run: |
|
||||||
[ -s CHANGELOG.md ] && CHANGELOG=$(< CHANGELOG.md) || CHANGELOG="*Empty.*"
|
[ -s CHANGELOG.md ] && CHANGELOG=$(< CHANGELOG.md) || CHANGELOG="*Empty.*"
|
||||||
|
|
||||||
|
|
@ -49,6 +50,8 @@ jobs:
|
||||||
echo "$CHANGELOG" >> $GITHUB_ENV
|
echo "$CHANGELOG" >> $GITHUB_ENV
|
||||||
echo "EOF" >> $GITHUB_ENV
|
echo "EOF" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Upload Release
|
- name: Upload Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
|
|
@ -61,6 +64,8 @@ jobs:
|
||||||
## Changelog
|
## Changelog
|
||||||
${{ env.CHANGELOG }}
|
${{ env.CHANGELOG }}
|
||||||
|
|
||||||
|
Full changelog [here](https://github.com/JulienMaille/dribbblish-dynamic-theme/compare/${{ env.LATEST_TAG }}...${{ github.event.inputs.version }})
|
||||||
|
|
||||||
---
|
---
|
||||||
### Install / Update
|
### Install / Update
|
||||||
#### Windows (PowerShell)
|
#### Windows (PowerShell)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue