Skip to content

Commit

Permalink
(baby-project-server) Changes artifact publish for release publish (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
dusan-turajlic authored Apr 11, 2021
1 parent aee4950 commit 2086421
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publish Build Artifacts

on:
push:
create:
tags:
- v*

Expand All @@ -16,9 +16,14 @@ jobs:
- uses: actions/checkout@v2
- name: Run Jar Build
run: gradle bootJar
- uses: actions/upload-artifact@v2
- uses: papeloto/action-zip@v1
with:
name: "baby-project-artifact-${{ steps.data.outputs.SOURCE_TAG }}"
path: ${{ github.workspace }}/build
- name: Build Finnished
run: echo "Artifact Published"
files: build/
dest: baby-project-server-${{ steps.data.outputs.SOURCE_TAG }}.zip
- name: Publish release
uses: softprops/action-gh-release@v1
with:
name: "baby-project-server-release-${{ steps.data.outputs.SOURCE_TAG }}"
files: baby-project-server-${{ steps.data.outputs.SOURCE_TAG }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2086421

Please sign in to comment.