Skip to content

Commit

Permalink
chore: add EAS workflow for preview deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
IZUMI-Zu committed Aug 24, 2024
1 parent e660fbf commit db5df2a
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/eas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on:
push:
branches:
- '**'

jobs:
preview:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3

- name: 📥 Fetch config from master
run: |
git fetch origin master
git checkout origin/master -- ./app.json
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: npm

- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: 📦 Install dependencies
run: npm install

- name: 🚀 Create preview
uses: expo/expo-github-action/preview@v8
with:
command: eas update --auto --branch ${{ github.event.pusher.name }}/${{ github.event.ref }}
comment: false
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
path: android/app/build/outputs/apk/release/

semantic-release:
if: github.repository == 'casdoor/casdoor-app'
needs: [build-apk]
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"extra": {
"eas": {
"projectId": "c02d2dfe-dd43-46ff-8a3e-e384fbc95b1d"
"projectId": "d0ddea88-9be6-46db-8aa5-ea6d80cef527"
}
},
"plugins": [
Expand All @@ -46,6 +46,6 @@
}
]
],
"owner": "casdoor"
"owner": "zzbs"
}
}

0 comments on commit db5df2a

Please sign in to comment.