Skip to content

Commit

Permalink
test86
Browse files Browse the repository at this point in the history
  • Loading branch information
iZakirSheikh committed Aug 23, 2023
1 parent fc4f258 commit 1b48b03
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ jobs:
- uses: actions/checkout@v3
- name: Setting environment variables for date, ads, unity, and version
run: |
echo "DATE_TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
echo "IAP_NO_ADS=$(echo ${{ secrets.IAP_NO_ADS }})" >> $GITHUB_ENV
echo "PLACEMENT_BANNER_1=$(echo ${{ secrets.PLACEMENT_BANNER_1 }})" >> $GITHUB_ENV
echo "PLACEMENT_BANNER_1=$(echo ${{ secrets.PLACEMENT_BANNER_1 }})" >> $GITHUB_ENV
echo "PLACEMENT_BANNER_2=$(echo ${{ secrets.PLACEMENT_BANNER_2 }})" >> $GITHUB_ENV
echo "PLACEMENT_INTERSTITIAL=$(echo ${{ secrets.PLACEMENT_INTERSTITIAL }})" >> $GITHUB_ENV
echo "PLAY_CONSOLE_APP_RSA_KEY=$(echo ${{ secrets.PLAY_CONSOLE_APP_RSA_KEY }})" >> $GITHUB_ENV
echo "UNITY_APP_ID=$(echo ${{ secrets.UNITY_APP_ID }})" >> $GITHUB_ENV
echo "GIT_TAG=$(grep -E "versionName\s*=?\s*['\"]" "app/build.gradle.kts" | awk -F"['\"]" '{print $2}')" >> $GITHUB_ENV
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:
echo "The secrets are:\nDATE_TODAY=$DATE_TODAY\nIAP_NO_ADS=$IAP_NO_ADS\nPLACEMENT_BANNER_1=$PLACEMENT_BANNER_1\nPLACEMENT_BANNER_2=$PLACEMENT_BANNER_2\nPLACEMENT_INTERSTITIAL=$PLACEMENT_INTERSTITIAL\nPLAY_CONSOLE_APP_RSA_KEY=$PLAY_CONSOLE_APP_RSA_KEY\nUNITY_APP_ID=$UNITY_APP_ID\nGIT_TAG=$GIT_TAG" | xxd -ps
run: |
for var in $(compgen -v 1_); do echo " $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
Expand Down

0 comments on commit 1b48b03

Please sign in to comment.