Skip to content

Commit

Permalink
Merge pull request #252 from RichDom2185/week10/fix-cd-workflow
Browse files Browse the repository at this point in the history
Fix broken JAR file CD workflow
  • Loading branch information
RichDom2185 authored Oct 21, 2022
2 parents 50e6224 + 4fffd9a commit 151485f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,18 @@ jobs:
java-package: jdk+fx
- name: Create JAR file
run: ./gradlew shadowJar
- name: Generate tag name from time
id: time
run: echo ::set-output name=NOW::$(echo ${{ github.event.repository.updated_at}} | sed -e 's/-//g' -e 's/T/-/g' -e 's/.\{4\}$/Z/' -e 's/://g')
- 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: ${{ github.ref }}
release_name: ${{ github.ref }}
body: Auto-created release from ${{ github.ref }}
tag_name: ${{ steps.time.outputs.NOW }}
release_name: Auto-release ${{ github.event.repository.updated_at}}
body: 'Auto-created release from branch "${{ github.ref_name }}"'
- name: Upload JAR file to GitHub releases
uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit 151485f

Please sign in to comment.