refactor: migrate authentication using Clerk #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Web on PR | |
'on': pull_request | |
permissions: | |
checks: write | |
contents: read | |
pull-requests: write | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
# - uses: expo/expo-github-action@v8 | |
# with: | |
# expo-version: latest | |
# eas-version: latest | |
# token: ${{ secrets.EXPO_TOKEN }} | |
- name: Install modules | |
run: bun install --immutable | |
- name: Build web | |
run: bun build:web | |
env: | |
supabaseUrl: ${{ secrets.supabaseUrl }} | |
supabaseAnonKey: ${{ secrets.supabaseAnonKey }} | |
EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY }} | |
expoProjectId: ${{ secrets.expoProjectId }} | |
# Meta tags are not updatable from Expo SDK 49 so add below step | |
- name: Inject Meta Tags | |
run: | | |
sed -i '/<\/head>/i \ | |
<meta property="og:image" content="https://crossplatformkorea.com/img/hero.svg" />\n\ | |
<meta property="og:type" content="website" />\n\ | |
<meta property="og:url" content="https://app.crossplatformkorea.com" />\n\ | |
<meta property="og:description" content="Cross-Platform Korea Community" />\n\ | |
<meta property="og:title" content="Cross-Platform Korea" />\n\ | |
<meta property="twitter:card" content="Cross-Platform Korea" />\n\ | |
<meta property="twitter:url" content="https://app.crossplatformkorea.com" />\n\ | |
<meta property="twitter:title" content="Cross-Platform Korea" />\n\ | |
<meta property="twitter:description" content="Cross-Platform Korea Community" />\n' ./dist/index.html | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_CROSS_PLATFORM_KOREA_5032F }}' | |
channelId: live | |
projectId: cross-platform-korea-5032f | |
target: staging |