This determines the final compilation output of your project.
Unlike Debug builds, selecting a Release build triggers a strict signing process. To execute this securely, you must configure your private repository's YAML file to accept the keystore injection.
You must add exactly one new line to Step 4 of your swaplab-workflow-cache.yml file in your private repository.
Before (Public Version):
# 4. Execute the build engine in an isolated container
- name: SwapLab Run Build Android Engine
run: |
docker run --rm -i \
-v ~/.gradle/caches:/github/workspace/.gradle/caches \
...
-e GITHUB_RUN_ID=${{ github.run_id }} \
ghcr.io${{ github.event.inputs.imageName }}:${{ github.event.inputs.ref }}
After (Private Release Version):
# 4. Execute the build engine in an isolated container
- name: SwapLab Run Build Android Engine
run: |
docker run --rm -i \
-v ~/.gradle/caches:/github/workspace/.gradle/caches \
...
-e GITHUB_RUN_ID=${{ github.run_id }} \
-e INPUT_KEYSTORE_BASE64=${{ secrets.KEYSTORE_BASE64 }} \
ghcr.io${{ github.event.inputs.imageName }}:${{ github.event.inputs.ref }}
You must create a new Repository Secret in your GitHub repository named exactly KEYSTORE_BASE64. The value must be the Base64 encoded string of your `.jks` file.
.jks file to Base64, you can safely use our free companion tool at keystore.swaplab.net.