diff --git a/.github/workflows/desktop.release.reuse.yml b/.github/workflows/desktop.release.reuse.yml index 6a4560504..6a94bb0ae 100644 --- a/.github/workflows/desktop.release.reuse.yml +++ b/.github/workflows/desktop.release.reuse.yml @@ -184,6 +184,7 @@ jobs: - name: Publish Snap continue-on-error: true run: | + sudo snap install snapcraft --classic echo "${{ secrets.SNAPCRAFT_LOGIN_FILE }}" >> snapauth.txt snapcraft login --with=snapauth.txt snapcraft upload dist/standard-notes-${{ steps.package-version.outputs.current-version}}-linux-amd64.snap diff --git a/.github/workflows/mobile.release.dev.yml b/.github/workflows/mobile.release.dev.yml index 75dd99ee7..350dcbbca 100644 --- a/.github/workflows/mobile.release.dev.yml +++ b/.github/workflows/mobile.release.dev.yml @@ -43,11 +43,22 @@ jobs: with: lane: 'android dev' subdirectory: 'packages/mobile' - - name: Upload universal apk to artifacts - uses: actions/upload-artifact@v2 + + - name: get-npm-version + id: package-version + uses: martinbeentjes/npm-get-version-action@main with: - name: dev.apk - path: android/app/build/outputs/apk/dev/release/app-dev-release.apk + path: packages/mobile + - name: Release + uses: softprops/action-gh-release@v1 + with: + token: ${{ secrets.CI_PAT_TOKEN }} + tag_name: "@standardnotes/mobile@${{ steps.package-version.outputs.current-version}}" + prerelease: true + draft: false + name: "Mobile Beta ${{ steps.package-version.outputs.current-version }}" + files: | + packages/mobile/android/app/build/outputs/apk/dev/release/app-dev-release.apk ios: defaults: run: diff --git a/.github/workflows/mobile.release.prod.yml b/.github/workflows/mobile.release.prod.yml index 45cf5722a..2f35b5e26 100644 --- a/.github/workflows/mobile.release.prod.yml +++ b/.github/workflows/mobile.release.prod.yml @@ -44,16 +44,24 @@ jobs: with: lane: 'android prod' subdirectory: 'packages/mobile' - - name: Upload universal apk to artifacts - uses: actions/upload-artifact@v2 + + - name: get-npm-version + id: package-version + uses: martinbeentjes/npm-get-version-action@main with: - name: prod.apk - path: android/app/build/outputs/apk/prod/release/app-prod-release.apk - - name: Upload Android App Bundle to artifacts - uses: actions/upload-artifact@v2 + path: packages/mobile + - name: Release + uses: softprops/action-gh-release@v1 with: - name: release.aab - path: android/app/build/outputs/bundle/prodRelease/app-prod-release.aab + token: ${{ secrets.CI_PAT_TOKEN }} + tag_name: "@standardnotes/mobile@${{ steps.package-version.outputs.current-version}}" + prerelease: false + draft: false + name: "Mobile ${{ steps.package-version.outputs.current-version }}" + files: | + packages/mobile/android/app/build/outputs/bundle/prodRelease/app-prod-release.aab + packages/mobile/android/app/build/outputs/apk/prod/release/app-prod-release.apk + ios: defaults: run: