Skip to content

Commit

Permalink
Update workflows (#20)
Browse files Browse the repository at this point in the history
Signed-off-by: conanoc <conanoc@gmail.com>
  • Loading branch information
conanoc committed Feb 22, 2024
1 parent 9f98b09 commit a94f3f8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ jobs:
path: 'ariesframework/build/reports/ktlint/**/*.xml'
- name: Build
run: ./gradlew assembleDebug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 5 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
uses: android-actions/setup-android@v2
- name: Build
run: ./gradlew :ariesframework:assemble
- name: Publish
run: ./gradlew publishAllPublicationsToGithubRepository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ github.ref }}
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
Expand All @@ -26,13 +31,3 @@ jobs:
with:
draft: true
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ariesframework/build/outputs/aar/ariesframework-release.aar
asset_name: aries-framework-kotlin.aar
asset_content_type: application/aar
3 changes: 2 additions & 1 deletion ariesframework/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ if (secretPropsFile.exists()) {
} else {
ext["githubUsername"] = System.getenv("GITHUB_ACTOR")
ext["githubToken"] = System.getenv("GITHUB_TOKEN")
ext["version"] = System.getenv("VERSION")
}

def getExtraString(name) {
Expand All @@ -102,7 +103,7 @@ afterEvaluate {
from components.release
groupId 'org.hyperledger'
artifactId 'aries-framework-kotlin'
version '2.0.0'
version getExtraString("version")
}
}
}
Expand Down

0 comments on commit a94f3f8

Please sign in to comment.