test87 #92
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
name: Test | |
on: | |
push: | |
branches: # Change this to master once everything is setup. | |
- 'test' | |
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setting environment variables for date, ads, unity, and version | |
run: | | |
echo "1DATE_TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV | |
echo "1IAP_NO_ADS=$(echo ${{ secrets.IAP_NO_ADS }})" >> $GITHUB_ENV | |
echo "1PLACEMENT_BANNER_1=$(echo ${{ secrets.PLACEMENT_BANNER_1 }})" >> $GITHUB_ENV | |
echo "1PLACEMENT_BANNER_1=$(echo ${{ secrets.PLACEMENT_BANNER_1 }})" >> $GITHUB_ENV | |
echo "1PLACEMENT_BANNER_2=$(echo ${{ secrets.PLACEMENT_BANNER_2 }})" >> $GITHUB_ENV | |
echo "1PLACEMENT_INTERSTITIAL=$(echo ${{ secrets.PLACEMENT_INTERSTITIAL }})" >> $GITHUB_ENV | |
echo "1PLAY_CONSOLE_APP_RSA_KEY=$(echo ${{ secrets.PLAY_CONSOLE_APP_RSA_KEY }})" >> $GITHUB_ENV | |
echo "1UNITY_APP_ID=$(echo ${{ secrets.UNITY_APP_ID }})" >> $GITHUB_ENV | |
echo "1GIT_TAG=$(grep -E "versionName\s*=?\s*['\"]" "app/build.gradle.kts" | awk -F"['\"]" '{print $2}')" >> $GITHUB_ENV | |
- name: Print environment variable | |
run: | | |
for var in $(compgen -v 1_); do echo "12 $var" done | |
# Lastly if everything went good create a GitHub release fusing the above tag | |
- name: Create Github Release using tag name v${{ env.GIT_TAG }} and uploading signed APK and AAB files | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: v${{ env.GIT_TAG }} | |
generate_release_notes: true | |
prerelease: false | |
files: | | |
${{steps.signed_aab.outputs.signedReleaseFile}} | |
${{steps.signed_apk.outputs.signedReleaseFile}} |