@@ -40,14 +40,15 @@ jobs:
40
40
# via the 'ref' client parameter.
41
41
steps :
42
42
- name : Checkout source for staging
43
- uses : actions/checkout@v2
43
+ uses : actions/checkout@v4
44
44
with :
45
45
ref : ${{ github.event.client_payload.ref || github.ref }}
46
46
47
- - name : Set up JDK 1. 8
48
- uses : actions/setup-java@v1
47
+ - name : Set up JDK 8
48
+ uses : actions/setup-java@v4
49
49
with :
50
- java-version : 1.8
50
+ distribution : ' zulu'
51
+ java-version : 8
51
52
52
53
- name : Compile, test and package
53
54
run : ./.github/scripts/package_artifacts.sh
@@ -80,12 +81,13 @@ jobs:
80
81
81
82
steps :
82
83
- name : Checkout source for publish
83
- uses : actions/checkout@v2
84
+ uses : actions/checkout@v4
84
85
85
- - name : Set up JDK 1. 8
86
- uses : actions/setup-java@v1
86
+ - name : Set up JDK 8
87
+ uses : actions/setup-java@v4
87
88
with :
88
- java-version : 1.8
89
+ distribution : ' zulu'
90
+ java-version : 8
89
91
90
92
- name : Publish preflight check
91
93
id : preflight
@@ -99,19 +101,13 @@ jobs:
99
101
NEXUS_OSSRH_USERNAME : ${{ secrets.NEXUS_OSSRH_USERNAME }}
100
102
NEXUS_OSSRH_PASSWORD : ${{ secrets.NEXUS_OSSRH_PASSWORD }}
101
103
102
- # We pull this action from a custom fork of a contributor until
103
- # https://github.com/actions/create-release/pull/32 is merged. Also note that v1 of
104
- # this action does not support the "body" parameter.
104
+ # See: https://cli.github.com/manual/gh_release_create
105
105
- name : Create release tag
106
- uses : fleskesvor/create-release@1a72e235c178bf2ae6c51a8ae36febc24568c5fe
107
106
env :
108
107
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
109
- with :
110
- tag_name : ${{ steps.preflight.outputs.version }}
111
- release_name : Firebase Admin Java SDK ${{ steps.preflight.outputs.version }}
112
- body : ${{ steps.preflight.outputs.changelog }}
113
- draft : false
114
- prerelease : false
108
+ run : gh release create ${{ steps.preflight.outputs.version }}
109
+ --title "Firebase Admin Java SDK ${{ steps.preflight.outputs.version }}"
110
+ --notes '${{ steps.preflight.outputs.changelog }}'
115
111
116
112
# Post to Twitter if explicitly opted-in by adding the label 'release:tweet'.
117
113
- name : Post to Twitter
0 commit comments