Skip to content

Commit

Permalink
build: use environment for release
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Jul 8, 2024
1 parent 1bdaffe commit c34281f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build-shared-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ on:
required: false
type: string
default: 'false'
ENV:
required: false
type: string
default: 'staging'
TERRASO_BACKEND:
required: false
type: string
default: 'https://api.staging.terraso.net'
APP_BUILD:
required: false
type: string
Expand Down Expand Up @@ -44,13 +36,14 @@ on:
required: false

jobs:
environment: ${{ github.event.inputs.environment }}
ios-build:
name: iOS Build
runs-on: macos-14
env:
STRICT: ${{ inputs.STRICT }}
ENV: ${{ inputs.ENV }}
TERRASO_BACKEND: ${{ inputs.TERRASO_BACKEND }}
ENV: ${{ vars.ENV }}
TERRASO_BACKEND: ${{ vars.TERRASO_BACKEND }}
APP_BUILD: ${{ inputs.APP_BUILD }}
GOOGLE_OAUTH_ANDROID_CLIENT_ID: ${{ vars.GOOGLE_OAUTH_ANDROID_CLIENT_ID }}
GOOGLE_OAUTH_IOS_CLIENT_ID: ${{ vars.GOOGLE_OAUTH_IOS_CLIENT_ID }}
Expand All @@ -71,6 +64,13 @@ jobs:
LDPLUSPLUS: clang++

steps:
- name: test
run: |
echo "environment = ${{ github.event.inputs.environment }}"
echo "ENV = ${{ env.ENV }}"
echo "TERRASO_BACKEND = ${{ env.TERRASO_BACKEND }}"
exit 1
- name: Check out git repository
uses: actions/checkout@v4

Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/ios_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ name: iOS Release
on:
workflow_dispatch:
inputs:
APP_BUILD:
description: 'Build number (i.e. 153)'
default: '153'
type: string
required: true
environment:
description: 'Release environment'
type: environment
type: choice
required: true
default: staging
options:
- staging
- production
push:
tags:
- 'v[0-9]+'
Expand Down

0 comments on commit c34281f

Please sign in to comment.