Skip to content

Commit

Permalink
test flow
Browse files Browse the repository at this point in the history
  • Loading branch information
mshdabiola committed Jun 6, 2024
1 parent 3c90c76 commit 45e19d0
Show file tree
Hide file tree
Showing 5 changed files with 121 additions and 8 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/Build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ name: Build
# branches:
# - main
# pull_request:
#on: workflow_dispatch
on: workflow_dispatch

on:
push:
branches:
- develop
pull_request:
#on:
# push:
# branches:
# - develop
# pull_request:

concurrency:
group: build-${{ github.ref }}
Expand Down Expand Up @@ -45,7 +45,11 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v3
uses: gradle/actions/setup-gradle@v3
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"

- name: Check build-logic
run: ./gradlew check -p build-logic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"

- name: Build jar
run: ./gradlew createReleaseDistributable
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/deploy_to_github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy to github

#on:
# push:
# tags:
# - '*'
on: workflow_dispatch

## 2
jobs:
## 3
build:
runs-on: ubuntu-latest
steps:
# 1
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
# 2
- name: Generate Release APK
run: ./gradlew assembleRelease
# 3
- name: Sign APK
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 }}
# 4
- name: Draft Release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "app/build/outputs/apk/release/*signed.apk"
token: ${{ secrets.TOKEN }}
33 changes: 33 additions & 0 deletions .github/workflows/deploy_to_github2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy to github1

on:
push:
tags:
- '*'

## 2
jobs:
## 3
build:
runs-on: ubuntu-latest
steps:
# 1
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
# 2
- name: Build
run: echo ${{ github.sha }} > Release.txt

- name: Test
run: cat Release1.txt

- name: Release
uses: softprops/action-gh-release@v2
with:
append_body: true
token: ${{ secrets.TOKEN }}
files: |
Release1.txt
33 changes: 33 additions & 0 deletions .github/workflows/deploy_to_github3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy to github3

on:
push:
tags:
- '*'

## 2
jobs:
## 3
build:
runs-on: ubuntu-latest
steps:
# 1
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
# 2
- name: Build
run: echo ${{ github.sha }} > Release.txt

- name: Test
run: cat Release3.txt

- name: Release
uses: softprops/action-gh-release@v2
with:
append_body: true
token: ${{ secrets.TOKEN }}
files: |
Release3.txt

0 comments on commit 45e19d0

Please sign in to comment.