forked from AlmightyHak/extensions-source
Update .github/workflows/build_push.yml
This commit is contained in:
parent
0bddcda190
commit
9e592e90ab
1 changed files with 12 additions and 12 deletions
24
.github/workflows/build_push.yml
vendored
24
.github/workflows/build_push.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
|||
individualMatrix: ${{ steps.generate-matrices.outputs.individualMatrix }}
|
||||
steps:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||
uses: https://github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||
with:
|
||||
ref: main
|
||||
token: ${{ secrets.BOT_PAT }}
|
||||
|
@ -57,7 +57,7 @@ jobs:
|
|||
# ./.github/scripts/bump-versions.py ${{ steps.modified-libs.outputs.all_changed_files }}
|
||||
|
||||
- name: Validate Gradle Wrapper
|
||||
uses: gradle/actions/wrapper-validation@v4
|
||||
uses: https://github.com/gradle/actions/wrapper-validation@v4
|
||||
|
||||
- name: Get number of modules
|
||||
run: |
|
||||
|
@ -68,7 +68,7 @@ jobs:
|
|||
|
||||
- id: generate-matrices
|
||||
name: Create output matrices
|
||||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
|
||||
uses: https://github.com/actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
|
||||
with:
|
||||
script: |
|
||||
const numIndividualModules = process.env.NUM_INDIVIDUAL_MODULES;
|
||||
|
@ -88,12 +88,12 @@ jobs:
|
|||
matrix: ${{ fromJSON(needs.prepare.outputs.individualMatrix) }}
|
||||
steps:
|
||||
- name: Checkout main branch
|
||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||
uses: https://github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||
with:
|
||||
ref: main
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4
|
||||
uses: https://github.com/actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: temurin
|
||||
|
@ -103,7 +103,7 @@ jobs:
|
|||
echo ${{ secrets.SIGNING_KEY }} | base64 -d > signingkey.jks
|
||||
|
||||
- name: Set up Gradle
|
||||
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3
|
||||
uses: https://github.com/gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3
|
||||
|
||||
- name: Build extensions (chunk ${{ matrix.chunk }})
|
||||
env:
|
||||
|
@ -114,7 +114,7 @@ jobs:
|
|||
run: chmod +x ./gradlew && ./gradlew -p src assembleRelease
|
||||
|
||||
- name: Upload APKs (chunk ${{ matrix.chunk }})
|
||||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
|
||||
uses: https://github.com/actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
|
||||
if: "github.repository == 'Kohi-den/extensions-source'"
|
||||
with:
|
||||
name: "individual-apks-${{ matrix.chunk }}"
|
||||
|
@ -132,18 +132,18 @@ jobs:
|
|||
runs-on: docker
|
||||
steps:
|
||||
- name: Download APK artifacts
|
||||
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4
|
||||
uses: https://github.com/actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4
|
||||
with:
|
||||
path: ~/apk-artifacts
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4
|
||||
uses: https://github.com/actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: temurin
|
||||
|
||||
- name: Checkout main branch
|
||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||
uses: https://github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||
with:
|
||||
ref: main
|
||||
path: main
|
||||
|
@ -158,7 +158,7 @@ jobs:
|
|||
python ./.github/scripts/create-repo.py
|
||||
|
||||
- name: Checkout repo branch
|
||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||
uses: https://github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||
with:
|
||||
repository: Kohi-den/extensions
|
||||
token: ${{ secrets.BOT_PAT }}
|
||||
|
@ -170,7 +170,7 @@ jobs:
|
|||
rsync -a --delete --exclude .git --exclude .gitignore main/repo/ repo --exclude README.md --exclude repo.json
|
||||
|
||||
- name: Deploy repo
|
||||
uses: EndBug/add-and-commit@v9
|
||||
uses: https://github.com/EndBug/add-and-commit@v9
|
||||
with:
|
||||
message: "Update extensions repo"
|
||||
cwd: "./repo"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue