Skip to content

Commit ea8bef3

Browse files
committed
Fix manual workflow to not include release, reorder automatic one
1 parent 7247761 commit ea8bef3

File tree

2 files changed

+10
-27
lines changed

2 files changed

+10
-27
lines changed

.github/workflows/update-library-manual.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -94,23 +94,6 @@ jobs:
9494
run: |
9595
sed -i '/RequiresApi/d' ./android/supercel/src/main/java/com/superwall/supercel/CEL.kt
9696
97-
- name: Tag the New Version
98-
run: |
99-
git tag -a "${{ env.VERSION_NUMBER }}" -m "Release version ${{ env.VERSION_NUMBER }}"
100-
git push origin "${{ env.VERSION_NUMBER }}"
101-
working-directory: android
102-
103-
- name: Create GitHub Release
104-
uses: actions/create-release@v1
105-
env:
106-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107-
with:
108-
tag_name: ${{ env.VERSION_NUMBER }}
109-
release_name: ${{ env.VERSION_NUMBER }}
110-
body: "This is an automatically generated release. Please see the [original Rust release](https://github.com/superwall/superscript/releases/tag/${{ env.VERSION_NUMBER }}) for any version changes."
111-
draft: false
112-
prerelease: false
113-
11497
- name: Build and publish
11598
env:
11699
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}

.github/workflows/update-library.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,16 @@ jobs:
119119
git commit -m "Update library"
120120
git push origin main
121121
122+
- name: Build and publish
123+
env:
124+
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
125+
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_KEY_PW}}
126+
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SECRING }}
127+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
128+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PW }}
129+
run: ./gradlew publish
130+
working-directory: android
131+
122132
- name: Tag the New Version
123133
run: |
124134
git tag -a "${{ env.VERSION_NUMBER }}" -m "Release version ${{ env.VERSION_NUMBER }}"
@@ -135,13 +145,3 @@ jobs:
135145
body: "This is an automatically generated release. Please see the [original Rust release](https://github.com/superwall/superscript/releases/tag/${{ env.VERSION_NUMBER }}) for any version changes."
136146
draft: false
137147
prerelease: false
138-
139-
- name: Build and publish
140-
env:
141-
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
142-
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_KEY_PW}}
143-
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SECRING }}
144-
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
145-
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PW }}
146-
run: ./gradlew publish
147-
working-directory: android

0 commit comments

Comments
 (0)