Skip to content

Commit

Permalink
Use custom release name in CD workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RichDom2185 committed Oct 27, 2022
1 parent 91464e3 commit 7d26fd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,17 @@ jobs:
- name: Generate tag name from time
id: tagname
run: echo ::set-output name=TAGNAME::$(echo ${{ github.event.repository.pushed_at }} | sed -e 's/^../AR/')
- name: Generate release name from time
id: releasename
run: echo "::set-output name=RELEASENAME::$(date -d @${{ github.event.repository.pushed_at }})"
- name: Create release on GitHub
id: create_release # We need the id to refer to it in the next step
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tagname.outputs.TAGNAME }}
release_name: Auto-release ${{ github.event.repository.pushed_at }}
release_name: Auto-release ${{ steps.releasename.outputs.RELEASENAME }}
body: 'Auto-created release from branch "${{ github.ref_name }}"'
- name: Upload JAR file to GitHub releases
uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit 7d26fd2

Please sign in to comment.