Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoby committed Aug 7, 2024
1 parent c8083bf commit 6cd659a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 29 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: '0'

Expand All @@ -25,12 +25,12 @@ jobs:
keystore: ${{ secrets.RELEASE_KEYSTORE }}
keystorePassword: ${{ secrets.RELEASE_KEYSTORE_PASSWORD }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ziti-mobile-edge-debug.aab
path: app/build/outputs/bundle/debug/*.aab

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ziti-mobile-edge-debug.apk
path: app/build/outputs/apk/debug/*.apk
2 changes: 1 addition & 1 deletion .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ jobs:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32 changes: 7 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -19,28 +19,10 @@ jobs:
keystore: ${{ secrets.RELEASE_KEYSTORE }}
keystorePassword: ${{ secrets.RELEASE_KEYSTORE_PASSWORD }}

- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}

- name: upload release bundle
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: app/build/outputs/bundle/release/app-release.aab
asset_name: ziti-mobile-edge.aab
asset_content_type: application/octet-stream

- name: upload release APK
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Release artifacts
uses: softprops/action-gh-release@v2
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: app/build/outputs/apk/release/app-release.apk
asset_name: ziti-mobile-edge.apk
asset_content_type: application/octet-stream
fail_on_unmatched_files: true
files: |
app/build/outputs/bundle/release/app-release.aab
app/build/outputs/apk/release/app-release.apk

0 comments on commit 6cd659a

Please sign in to comment.