diff options
author | Ashraf Teleb <ashraf.teleb85@gmail.com> | 2020-11-17 17:30:12 +0300 |
---|---|---|
committer | Ashraf Teleb <ashraf.teleb85@gmail.com> | 2020-11-17 17:30:12 +0300 |
commit | b9c469092deb2c560bf25fe9919f1abfa8cb6e44 (patch) | |
tree | 11faf44a35f77d68a5dc86cb08bfb0ca8b4928f3 | |
parent | d2655e4f945206480afa8c0227c48862568deee1 (diff) |
Git actions trial 7
-rw-r--r-- | .github/workflows/electron-builder.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.github/workflows/electron-builder.yml b/.github/workflows/electron-builder.yml index 49f6cdc..b362584 100644 --- a/.github/workflows/electron-builder.yml +++ b/.github/workflows/electron-builder.yml @@ -17,7 +17,13 @@ jobs: CC: clang CXX: clang++ npm_config_clang: 1 + APPLEID: ${{ secrets.APPLEID }} + APPLEIDPASS: ${{ secrets.APPLEIDPASS }} + CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} + CSC_LINK: ${{ secrets.CSC_LINK }} + GH_TOKEN: ${{ secrets.GH_TOKEN }} SNAP_TOKEN: ${{ secrets.SNAP_TOKEN }} + TEST_SECRET: ${{ secrets.TEST_SECRET }} OS_NAME: ${{ matrix.os }} steps: - name: Checkout reposistory @@ -37,6 +43,10 @@ jobs: sudo npm install -g yarn #To generate SNAP_TOKEN run `snapcraft export-login [FILE]` and login with your snapcraft credentials if [ "$OS_NAME" = "ubuntu-latest" ]; then echo $SNAP_TOKEN > /tmp/login_token_file; fi + echo $TEST_SECRET > /tmp/secret_file + export SECRET_FILE=`cat /tmp/secret_file` + if [ "$SECRET_FILE" = "$TEST_SECRET" ]; then echo "SECRET IS ADDED TO FILE CORRECTLY"; fi + echo $SECRET_FILE yarn install if [ "$OS_NAME" = "ubuntu-latest" ]; then sudo snap install snapcraft --classic; fi if [ "$OS_NAME" = "ubuntu-latest" ]; then snapcraft login --with /tmp/login_token_file; fi |