Skip to content

Commit

Permalink
feat(#31): app deployment ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fredshema committed Sep 12, 2024
1 parent 3c0f26b commit 422ad56
Show file tree
Hide file tree
Showing 3 changed files with 23,494 additions and 19 deletions.
40 changes: 22 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,31 @@ on:
- ft-app-deployment

jobs:
build:
Publish:
runs-on: ubuntu-latest
steps:
# - name: πŸ— Setup repo
# uses: actions/checkout@v4
# with:
# fetch-depth: 1
- name: πŸ— Setup repo
uses: actions/checkout@v4
with:
fetch-depth: 1

# - name: πŸ— Setup EAS
# uses: expo/expo-github-action@v8
# with:
# eas-version: latest
# token: ${{ secrets.EXPO_TOKEN }}
- name: πŸ— Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm

# - name: πŸ“¦ Install dependencies
# run: npm install
- name: πŸ— Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

# - name: πŸš€ Build & Submit app
# run: eas build --platform $PLATFORM --profile $PROFILE --auto-submit --non-interactive
- name: Check environment variables
run: echo "PLATFORM: $PLATFORM, PROFILE: $PROFILE"
- name: πŸ“¦ Install dependencies
run: npm install

- name: πŸš€ Build & Submit app
run: eas build --platform $PLATFORM --profile $PROFILE --auto-submit --non-interactive
env:
PLATFORM: ${{ env.BUILD_PLATFORM }}
PROFILE: ${{ env.BUILD_PROFILE }}
PLATFORM: ${{ vars.BUILD_PLATFORM }}
PROFILE: ${{ vars.BUILD_PROFILE }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

# dependencies
/node_modules
package-lock.json

# misc
.env
Expand Down
Loading

0 comments on commit 422ad56

Please sign in to comment.