Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web build script #168

Merged
merged 5 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
working_directory: './api'
sourcemaps: './dist'

app:
app-native:
environment: main - app
runs-on: ubuntu-latest

Expand Down Expand Up @@ -85,13 +85,24 @@ jobs:
- name: 🚀 Publish update
run: yarn app eas update --auto --non-interactive --platform all

site:
environment: main - site
app-web:
environment: main - app
runs-on: ubuntu-latest

steps:
- name: 🚀 Deploy
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.DEPLOY_HOOK }}
url: ${{ secrets.WEB_DEPLOY_HOOK }}
method: POST

# docs:
# environment: main - docs
# runs-on: ubuntu-latest

# steps:
# - name: 🚀 Deploy
# uses: fjogeleit/http-request-action@v1
# with:
# url: ${{ secrets.DEPLOY_HOOK }}
# method: POST
21 changes: 20 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
- name: 🧪 Test
run: yarn test

app:
app-tests:
runs-on: ubuntu-latest

steps:
Expand All @@ -138,3 +138,22 @@ jobs:

- name: 🧪 Test
run: yarn app test

app-web-build-test:
runs-on: ubuntu-latest

steps:
- name: 🚧 Checkout
uses: actions/checkout@v3

- name: 🚧 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'

- name: 📦 Install
run: yarn install

- name: 🏗️ Build
run: yarn app build:web
1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "index.js",
"scripts": {
"prebuild": "(cd .. && yarn lib build) && yarn generate:gql && yarn expo customize tsconfig.json",
"build:web": "yarn prebuild && yarn expo export -p web",
"start": "APP_VARIANT=dev yarn expo start --dev-client",
"test": "yarn typecheck && jest",
"typecheck": "tsc --noEmit",
Expand Down
Loading