diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51fd5a7..c97cb5b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,8 +16,11 @@ jobs: - run: ./build.sh - run: python3 .github/workflows/name_release.py id: name_release + - name: Generate changelog + run: git log --format='* %B' $(git describe --tags --abbrev=0).. > changelog.txt - uses: softprops/action-gh-release@v1 with: tag_name: ${{ steps.name_release.outputs.release_name }} name: "Snapshot ${{ steps.name_release.outputs.release_name }}" files: miniforth.img + body_path: changelog.txt diff --git a/.github/workflows/name_release.py b/.github/workflows/name_release.py index ef1c876..32293d1 100644 --- a/.github/workflows/name_release.py +++ b/.github/workflows/name_release.py @@ -9,7 +9,7 @@ tag = base + letter if os.system('git show-ref --quiet --tags ' + tag) != 0: - print('::set-output name=release_name::' + tag) + os.system(f'echo release_name={tag} >> $GITHUB_OUTPUT') break else: raise hell