Skip to content

Commit

Permalink
Fix publish-core.gradle properties; rc branch instead staging
Browse files Browse the repository at this point in the history
  • Loading branch information
artemcheremnov committed Dec 13, 2023
1 parent d2e43f3 commit 2ee1773
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/android-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
- staging
- rc
- dev
env:
PACKAGE_TYPE: "aar"
Expand Down Expand Up @@ -57,9 +57,9 @@ jobs:
# Show Me Builded packages
- name: Show Me Builded packages
run: ls -al ${{ env.ARTIFACT_PATH}}/${{ env.PACKAGE_TYPE }}/
# Publish Main/Staging
- name: Publish Main/Staging
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging' }}
# Publish Main/Rc
- name: Publish Main/Rc
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/rc' }}
run: ./gradlew publish${{ env.RELEASE_TAG }}
env:
RELEASE_TAG: ${{ github.ref == 'refs/heads/main' && format('{0}', 'Release' ) || 'Rc' }}
Expand Down
4 changes: 2 additions & 2 deletions publish-core.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
def propertiesFilePath = '/Volumes/Keybase/team/velocitycareers/mobile/android/maven/nexus.properties'
def propertiesFile = new File(propertiesFilePath)

def properties = new Properties()
if (propertiesFile.exists()) {

if (propertiesFile.exists()) {
try {
properties.load(new FileInputStream(propertiesFile))
} catch (IOException e) {
Expand Down

0 comments on commit 2ee1773

Please sign in to comment.