Skip to content

Commit 5f5f01d

Browse files
authored
Fix SDK's publish workflow (#119)
Make the env `SDK_VERSION_NAME` variable available for all steps of the publishing workflow.
1 parent 73354da commit 5f5f01d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [ published ]
66

7+
env:
8+
SDK_VERSION_NAME: ${{ github.ref_name }}
9+
710
jobs:
811
build:
912
runs-on: ubuntu-latest
@@ -17,8 +20,6 @@ jobs:
1720
- name: Build
1821
run: ./gradlew build
1922
- name: Publish to Maven Repository
20-
env:
21-
SDK_VERSION_NAME: ${{ github.ref_name }}
2223
run: |
2324
eval $(ssh-agent -s)
2425
ssh-add - <<< "${{ secrets.MAVEN_DEPLOY }}"

0 commit comments

Comments
 (0)