Skip to content

Commit

Permalink
ci(release): add release notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
roll-w committed Nov 2, 2024
1 parent d602561 commit fedc7ce
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/manually_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:
run: |
git clone https://github.com/roll-w/web-common-starter
cd web-common-starter
# TODO: retrieve version from gradle task
git checkout 0.2.1
mvn -f web-common-parent/ clean install
cd ..
- name: Create Tag
Expand Down Expand Up @@ -94,21 +96,25 @@ jobs:
docker tag lamp-blog:${{ env.raw_version_name }} ghcr.io/${{ env.namespace }}/lamp-blog:${{ env.raw_version_name }}
docker push ghcr.io/${{ env.namespace }}/lamp-blog:${{ env.raw_version_name }}
sha=$(docker inspect ghcr.io/${{ env.namespace }}/lamp-blog:${{ env.raw_version_name }} --format='{{index .RepoDigests 0}}')
echo "digest=$sha" >> $GITHUB_ENV
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ghcr.io/lamp-blog
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
echo "digest=$sha" >> $GITHUB_OUTPUT
- name: Release
if: steps.build.outcome == 'success'
uses: softprops/action-gh-release@v2
with:
body: |
# ${{ env.version_name }}
Release for version ${{ env.raw_version_name }}
## Changes
## Artifacts
- Image: ghcr.io/${{ env.namespace }}/lamp-blog:${{ env.raw_version_name }}
- sha: `${{ steps.push.outputs.digest }}`
Pull image from `ghcr.io/${{ env.namespace }}/lamp-blog:${{ env.raw_version_name }}`
or download the image package from current release assets.
draft: true
tag_name: ${{ env.version_name }}
Expand Down

0 comments on commit fedc7ce

Please sign in to comment.