| 1 |
name: New Release |
| 2 |
on: |
| 3 |
workflow_dispatch: |
| 4 |
|
| 5 |
jobs: |
| 6 |
build: |
| 7 |
runs-on: ubuntu-latest |
| 8 |
steps: |
| 9 |
- name: Checkout |
| 10 |
uses: actions/checkout@v5 |
| 11 |
- name: Find the latest tag |
| 12 |
run: | |
| 13 |
git fetch --tags |
| 14 |
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) |
| 15 |
echo "The latest tag is:" $LATEST_TAG |
| 16 |
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV |
| 17 |
- name: Generate Changelog |
| 18 |
run: | |
| 19 |
echo "# What changed" > ${{ github.workspace }}-CHANGELOG.md |
| 20 |
python3 scripts/release-changelog.py $LATEST_TAG >> ${{ github.workspace }}-CHANGELOG.md |
| 21 |
- name: Preview Changelog |
| 22 |
run: cat ${{ github.workspace }}-CHANGELOG.md |
| 23 |
- name: Release |
| 24 |
uses: softprops/action-gh-release@v2 |
| 25 |
with: |
| 26 |
body_path: ${{ github.workspace }}-CHANGELOG.md |
| 27 |
repository: dbgbgtf1/Ceccomp |
| 28 |
tag_name: ${{ env.LATEST_TAG }} |
| 29 |
token: ${{ secrets.GITHUB_TOKEN }} |