Skip to content

Commit

Permalink
Create github release automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
castorm committed Nov 9, 2020
1 parent 4d513c7 commit 7624756
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
- name: Build with Maven
run: mvn -B integration-test package -P package

- name: Prepare staging
- name: Prepare artifacts
run: mkdir staging && cp kafka-connect-http/target/*.jar staging && cp kafka-connect-http/target/*.tar.gz staging
- name: Archive staging
- name: Archive artifacts
uses: actions/upload-artifact@v1
with:
name: Package
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/maven-release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

- name: Prepare artifacts
run: mkdir staging && cp kafka-connect-http/target/*.jar staging && cp kafka-connect-http/target/*.tar.gz staging
- name: Archive artifacts
uses: actions/upload-artifact@v1
with:
name: Package
path: staging

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false

0 comments on commit 7624756

Please sign in to comment.