Skip to content

Commit 375ef3d

Browse files
committed
Use action-automatic-releases instead of action-gh-release
1 parent a4a39c6 commit 375ef3d

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/build_jar.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@ name: "Build JAR"
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
release_tag:
7+
description: 'Tag to create and release.'
8+
required: true
9+
default: 'latest'
510

611
jobs:
712
build:
813
runs-on: ubuntu-latest
914
steps:
1015
- uses: actions/checkout@v2
11-
- name: vars
12-
run: echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
1316
- name: Setup Java JDK
1417
uses: actions/setup-java@v2.0.0
1518
with:
@@ -32,9 +35,11 @@ jobs:
3235
name: copybara.jar
3336
path: bazel-bin/java/com/google/copybara/copybara_deploy.jar
3437
if-no-files-found: error
35-
- name: Create GitHub Release
36-
uses: softprops/action-gh-release@v0.1.5
38+
- name: Automatic Releases
39+
uses: marvinpinto/action-automatic-releases@v1.2.0
3740
with:
41+
automatic_release_tag: "${{ github.event.inputs.release_tag }}"
42+
prerelease: false
3843
files: bazel-bin/java/com/google/copybara/copybara_deploy.jar
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
45+

0 commit comments

Comments
 (0)