Skip to content

test2

test2 #107

Workflow file for this run

name: Test
on:
push:
branches:
- test
workflow_dispatch: null
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setting environment variables for date, ads, unity, and version
run: >
touch local.properties
# echo "DATE_TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
# echo "GIT_TAG=$(grep -E "versionName\s*=?\s*['\"]" "app/build.gradle.kts" | awk -F"['\"]" '{print $2}')" >> $GITHUB_ENV
echo "IAP_NO_ADS=${{ secrets.IAP_NO_ADS }}" > ./local.properties
echo "PLACEMENT_BANNER_1=${{ secrets.PLACEMENT_BANNER_1 }}" > local.properties
echo "PLACEMENT_BANNER_2=${{ secrets.PLACEMENT_BANNER_2 }}" > local.properties
echo "PLACEMENT_INTERSTITIAL=${{ secrets.PLACEMENT_INTERSTITIAL }}" > local.properties
echo "PLAY_CONSOLE_APP_RSA_KEY=${{ secrets.PLAY_CONSOLE_APP_RSA_KEY }}" > local.properties
echo "UNITY_APP_ID=${{ secrets.UNITY_APP_ID }}" > ./local.properties
- name: Set IAP_NO_ADS
run: |
echo $(cat local.properties | grep IAP_NO_ADS | cut -d '=' -f 2)