Commit 582601a9 authored by benguedj's avatar benguedj Committed by Benjamin Guedj
Browse files

chore: 馃 Ajoute un nouvel env "develop" (#587)

Ajoute un nouvel env "develop" et supprime les secrets inutiles
parent 134534ba
......@@ -9,13 +9,13 @@ jobs:
name: Build and publish Android for Prod
runs-on: ubuntu-latest
env:
API_URL: ${{ secrets.API_URL_PROD }}
CLEAR_STORAGE: ${{ secrets.CLEAR_STORAGE }}
MATOMO_APPLICATION_ID: ${{ secrets.MATOMO_APPLICATION_ID_PROD }}
MATOMO_ENABLED: ${{ secrets.MATOMO_ENABLED }}
MATOMO_URL: ${{ secrets.MATOMO_URL }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SENTRY_ENABLED: ${{ secrets.SENTRY_ENABLED }}
API_URL: https://backoffice-les1000jours.fabrique.social.gouv.fr/
CLEAR_STORAGE: false
MATOMO_APPLICATION_ID: 43
MATOMO_ENABLED: true
MATOMO_URL: https://matomo.fabrique.social.gouv.fr/
SENTRY_DSN: https://5dbac413000f4a43a073841acebc82f5@sentry.fabrique.social.gouv.fr/55
SENTRY_ENABLED: true
SENTRY_TOKEN: ${{ secrets.SENTRY_TOKEN }}
GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }}
steps:
......@@ -38,13 +38,13 @@ jobs:
name: Build and publish iOS for Prod
runs-on: ubuntu-latest
env:
API_URL: ${{ secrets.API_URL_PROD }}
CLEAR_STORAGE: ${{ secrets.CLEAR_STORAGE }}
MATOMO_APPLICATION_ID: ${{ secrets.MATOMO_APPLICATION_ID_PROD }}
MATOMO_ENABLED: ${{ secrets.MATOMO_ENABLED }}
MATOMO_URL: ${{ secrets.MATOMO_URL }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SENTRY_ENABLED: ${{ secrets.SENTRY_ENABLED }}
API_URL: https://backoffice-les1000jours.fabrique.social.gouv.fr/
CLEAR_STORAGE: false
MATOMO_APPLICATION_ID: 43
MATOMO_ENABLED: true
MATOMO_URL: https://matomo.fabrique.social.gouv.fr/
SENTRY_DSN: https://5dbac413000f4a43a073841acebc82f5@sentry.fabrique.social.gouv.fr/55
SENTRY_ENABLED: true
SENTRY_TOKEN: ${{ secrets.SENTRY_TOKEN }}
GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }}
steps:
......
name: Publish on ExpoGo (Develop)
on:
push:
branches:
- 'develop'
paths:
- 'front/**'
workflow_dispatch:
name:
description: 'Manual workflow'
jobs:
Publish:
name: Publish Develop
runs-on: ubuntu-latest
env:
API_URL: https://backoffice-develop-les1000jours.dev.fabrique.social.gouv.fr
CLEAR_STORAGE: false
MATOMO_APPLICATION_ID: 46
MATOMO_ENABLED: true
MATOMO_URL: https://matomo.fabrique.social.gouv.fr/
SENTRY_DSN: https://5dbac413000f4a43a073841acebc82f5@sentry.fabrique.social.gouv.fr/55
SENTRY_ENABLED: true
SENTRY_TOKEN: ${{ secrets.SENTRY_TOKEN }}
GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14.x
- uses: expo/expo-github-action@v5
with:
expo-version: 4.x
expo-username: ${{ secrets.EXPO_CLI_USERNAME }}
expo-password: ${{ secrets.EXPO_CLI_PASSWORD }}
- name: Yarn
run: |
cd front
yarn install
yarn publish-develop
......@@ -14,13 +14,13 @@ jobs:
name: Publish PreProd
runs-on: ubuntu-latest
env:
API_URL: ${{ secrets.API_URL_PREPROD }}
CLEAR_STORAGE: ${{ secrets.CLEAR_STORAGE }}
MATOMO_APPLICATION_ID: ${{ secrets.MATOMO_APPLICATION_ID_PREPROD }}
MATOMO_ENABLED: ${{ secrets.MATOMO_ENABLED }}
MATOMO_URL: ${{ secrets.MATOMO_URL }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SENTRY_ENABLED: ${{ secrets.SENTRY_ENABLED }}
API_URL: https://backoffice-preprod-les1000jours.dev.fabrique.social.gouv.fr
CLEAR_STORAGE: false
MATOMO_APPLICATION_ID: 46
MATOMO_ENABLED: true
MATOMO_URL: https://matomo.fabrique.social.gouv.fr/
SENTRY_DSN: https://5dbac413000f4a43a073841acebc82f5@sentry.fabrique.social.gouv.fr/55
SENTRY_ENABLED: true
SENTRY_TOKEN: ${{ secrets.SENTRY_TOKEN }}
GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }}
steps:
......
......@@ -10,6 +10,7 @@
"test": "jest --watchAll",
"lint": "eslint .",
"lint-fix": "eslint --fix .",
"publish-develop": "expo publish --release-channel develop",
"publish-preprod": "expo publish --release-channel preprod",
"build-prod:android": "expo build:android --release-channel prod",
"build-prod:ios": "expo build:ios --release-channel prod",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment