🕊 #944
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır. | |
name: CloudStream Derleyici | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- "**/*.md" | |
- "**/*.yml" | |
- "**/*.jpg" | |
- "**/*.png" | |
- "**/*.py" | |
jobs: | |
CloudStreamDerleyici: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "'src' Depo Kontrolü" | |
uses: actions/[email protected] | |
with: | |
path: "src" | |
- name: "'build' Depo Kontrolü" | |
uses: actions/[email protected] | |
with: | |
ref: "builds" | |
path: "builds" | |
- name: Eski Derlemeleri Temizle | |
run: rm $GITHUB_WORKSPACE/builds/*.cs3 || true | |
- name: JDK 17 Ayarla | |
uses: actions/[email protected] | |
with: | |
distribution: adopt | |
java-version: 17 | |
- name: Android SDK Ayarla | |
uses: android-actions/[email protected] | |
- name: Eklentileri Derle | |
run: | | |
cd $GITHUB_WORKSPACE/src | |
chmod +x gradlew | |
./gradlew make makePluginsJson | |
cp **/build/*.cs3 $GITHUB_WORKSPACE/builds | |
cp build/plugins.json $GITHUB_WORKSPACE/builds | |
- name: Derlemeleri Yükle | |
run: | | |
cd $GITHUB_WORKSPACE/builds | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Actions" | |
git add . | |
git commit --amend -m "$GITHUB_SHA 'nın Derlenmesi" || exit 0 # eğer commit edilecek bir şey yoksa hata verme | |
git push --force |