Unverified Commit ef7f2f81 authored by Gary van Woerkens's avatar Gary van Woerkens Committed by GitHub
Browse files

chore(publish): Publish expo to dedicated channel on review branches (#714)


Co-authored-by: default avatarbenguedj <71835422+benguedj@users.noreply.github.com>
parent ca1c6c8d
......@@ -31,23 +31,33 @@ jobs:
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 }}
- uses: socialgouv/actions/k8s-namespace@k8s-namespace
id: namespace
with:
environment: "dev"
- name: Get branch name
run: |
echo "BRANCH_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Yarn
run: |
cd front
yarn install
yarn publish-develop
expo publish --release-channel $BRANCH_NAME
env:
BRANCH_NAME: ${{ env.BRANCH_NAME }}
API_URL: https://backoffice-${{ steps.namespace.outputs.value }}.dev.fabrique.social.gouv.fr
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