action.yml
.github/actions/release-setup/action.yml
1name: Release build setup2description: Check out the selected source commit and prepare the shared build toolchain.3inputs:4 commit:5 description: Resolved release tag commit6 required: true7 forgejo-username:8 description: Forgejo read account9 required: true10 forgejo-token:11 description: Forgejo source and submodule read token12 required: true13runs:14 using: composite15 steps:16 - name: Checkout selected Forgejo release source17 shell: bash18 env:19 SOURCE_COMMIT: ${{ inputs.commit }}20 FORGEJO_USERNAME: ${{ inputs.forgejo-username }}21 FORGEJO_TOKEN: ${{ inputs.forgejo-token }}22 run: |23 git init source24 git -C source remote add origin https://git.friedcutlet.com/friedcutlet/yokan.git25 bash .github/scripts/with-forgejo-auth.sh git -C source fetch --depth 1 origin "$SOURCE_COMMIT"26 git -C source checkout --detach FETCH_HEAD27 bash .github/scripts/with-forgejo-auth.sh git -C source submodule update --init --recursive --depth 12829 - name: Setup Java30 uses: actions/setup-java@v631 with:32 distribution: temurin33 java-version: '21'3435 - name: Setup Android SDK36 uses: android-actions/setup-android@v437 with:38 packages: platform-tools platforms;android-37.0 build-tools;37.0.03940 - name: Cache Gradle dependencies and reusable build outputs41 uses: gradle/actions/setup-gradle@v642 with:43 cache-cleanup: on-success44 artifact-retention-days: 145 dependency-graph: disabled46