Update GitHub workflows
This commit is contained in:
parent
81fdcb498d
commit
b292535ab6
32
.github/workflows/build_commit.yaml
vendored
32
.github/workflows/build_commit.yaml
vendored
|
@ -2,19 +2,23 @@ name: "Build Commit"
|
||||||
on: push
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-java@v2
|
- uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|
||||||
- uses: gradle/gradle-build-action@v2
|
- uses: gradle/gradle-build-action@v2
|
||||||
- run: gradle assembleRelease
|
- run: gradle assembleRelease
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ github.sha }}
|
name: github-${{ github.sha }}
|
||||||
path: app/build/outputs/apk/release/*.apk
|
path: app/build/outputs/apk/github/release/*.apk
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: fdroid-${{ github.sha }}
|
||||||
|
path: app/build/outputs/apk/fdroid/release/*.apk
|
||||||
|
|
32
.github/workflows/build_pull_request.yaml
vendored
32
.github/workflows/build_pull_request.yaml
vendored
|
@ -2,19 +2,23 @@ name: "Build Pull Request"
|
||||||
on: pull_request
|
on: pull_request
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-java@v2
|
- uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|
||||||
- uses: gradle/gradle-build-action@v2
|
- uses: gradle/gradle-build-action@v2
|
||||||
- run: gradle assembleRelease
|
- run: gradle assembleRelease
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ github.sha }}
|
name: github-${{ github.sha }}
|
||||||
path: app/build/outputs/apk/release/*.apk
|
path: app/build/outputs/apk/github/release/*.apk
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: fdroid-${{ github.sha }}
|
||||||
|
path: app/build/outputs/apk/fdroid/release/*.apk
|
||||||
|
|
Loading…
Reference in New Issue
Block a user