added mapbox and gservices secrets from github secrets

1.2-legacy
Antonio Vanegas 2021-02-19 17:04:48 +01:00
rodzic d13fa11dc8
commit ce9e402109
1 zmienionych plików z 8 dodań i 5 usunięć

Wyświetl plik

@ -13,12 +13,15 @@ jobs:
- uses: actions/checkout@master
- name: Checkout submodules
uses: textbook/git-checkout-submodule-action@master
- name: Mock config files for CI
- name: Loading secrets
¦ env:
¦ gservices: ${{ secrets.gservices }}
¦ mapboxtoken: ${{ secrets.mapboxtoken }}
¦ run: |
¦ echo $gservices > ./app/google-services.json
¦ echo $mapboxtoken > ./app/src/main/res/values/mapbox-token.xml
- name: Mock curfirmware version for CI
run: |
rm ./app/google-services.json
cp ./app/google-services-example.json ./app/google-services.json
rm ./app/src/main/res/values/mapbox-token.xml
cp ./app/special/mapbox-token.xml ./app/src/main/res/values/
rm ./app/src/main/res/values/curfirmwareversion.xml
cp ./app/special/curfirmwareversion.xml ./app/src/main/res/values/
- name: set up JDK 1.8