Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
add: release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: oSumAtrIX <[email protected]>
  • Loading branch information
oSumAtrIX committed May 10, 2022
1 parent 7a27131 commit a1878f4
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Release

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout Repo
uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'zulu'

- name: Grant execute permission for gradlew
run: chmod +x gradlew.sh

- name: Build with Gradle
run: ./gradlew.sh --no-daemon build

- name: Github Tag Bump
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
id: bump_version

- name: Upload APKs to Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./app/build/outputs/apk/release/*.apk
tag: ${{ steps.bump_version.outputs.new_tag }}
token: ${{ secrets.GITHUB_TOKEN }}
file_glob: true

0 comments on commit a1878f4

Please sign in to comment.