diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 0a3aba9..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,90 +0,0 @@ -name: Release - -on: - push: - tags: - - '*' - -defaults: - run: - shell: bash - -jobs: - release_android: - name: Release Android App - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Validate Gradle Wrapper - uses: gradle/wrapper-validation-action@v3 - - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'adopt' - cache: gradle - - - name: Make gradle executable - run: chmod +x ./gradlew - - - name: Get local.properties from secrets - run: echo "${{secrets.LOCAL_PROPERTIES }}" > $GITHUB_WORKSPACE/local.properties - - - name: Build app - run: ./gradlew assembleRelease --stacktrace - - - name: Sign APK - id: sign - uses: r0adkll/sign-android-release@v1 - with: - releaseDirectory: app/build/outputs/apk/release - signingKeyBase64: ${{ secrets.SIGNING_KEY }} - alias: ${{ secrets.ALIAS }} - keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} - keyPassword: ${{ secrets.KEY_PASSWORD }} - - - name: Archive Artifacts - uses: actions/upload-artifact@v4 - with: - name: android-app - if-no-files-found: ignore - path: app/build/outputs/apk/release/*.apk - - - name: Release - uses: softprops/action-gh-release@a485adba73bc95d9848c86e019d675bac99de0ed - with: - prerelease: ${{ contains(github.event.inputs.version, '-rc') || contains(github.event.inputs.version, '-b') || contains(github.event.inputs.version, '-a') }} - files: | - app/build/outputs/apk/release/*.apk - env: - GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} - - changelog: - name: Changelog - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Build Changelog - id: github_release - uses: mikepenz/release-changelog-builder-action@v4 - with: - configuration: ".github/config/configuration.json" - commitMode: true - ignorePreReleases: ${{ !contains(github.ref, '-') }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Release - uses: softprops/action-gh-release@a485adba73bc95d9848c86e019d675bac99de0ed - with: - body: ${{steps.github_release.outputs.changelog}} - prerelease: ${{ contains(github.event.inputs.version, '-rc') || contains(github.event.inputs.version, '-b') || contains(github.event.inputs.version, '-a') }} - env: - GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} \ No newline at end of file