Skip to content

Commit

Permalink
Merge pull request #29 from Iteam1337/feat/build
Browse files Browse the repository at this point in the history
Feat/build
  • Loading branch information
irony authored Sep 18, 2024
2 parents 2841d99 + b643f3a commit a786007
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
name: Publish to Github Pages

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

on:
push:
branches: ['main']
# Publish semver tags as releases.
tags: ['v*.*.*']

jobs:
Expand All @@ -25,9 +19,11 @@ jobs:
run: npm install

- name: Git user config
run: git config --global user.email "registry@iteam.se"
- name: Git user config
run: git config --global user.name "ghpages bot"
run: |
git config --global user.email "registry@iteam.se"
git config --global user.name "ghpages bot"
- name: Publish to Github Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run deploy
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ RUN npm install --omit=dev
RUN npm install -g ts-node
COPY . .
EXPOSE 3000
RUN npm run build
CMD ["ts-node", "api/server.ts"]
1 change: 1 addition & 0 deletions api/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const io = new Server(server, {
},
})

app.use('/', express.static(path.join(__dirname, '../dist')))
app.use('/assets', express.static(path.join(__dirname, '../assets')))
app.get('/healthz', (req, res) => res.send('ok'))

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"serve": "expo export && npx serve dist -p 3000",
"build": "expo export",
"deploy": "gh-pages -d dist",
"predeploy": "expo export && echo skaff.iteam.pub > dist/CNAME"
},
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "expo/tsconfig.base",
"compilerOptions": {
"strict": true
"strict": false
}
}

2 comments on commit a786007

@expo
Copy link

@expo expo bot commented on a786007 Sep 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub Build Trigger Failure

The build trigger failed with the following error:

INVALID_EAS_JSON_ERROR: eas.json not found in the repository.

Please check your GitHub app installation settings and your Expo project's GitHub settings to make sure you've configured everything correctly.

@expo
Copy link

@expo expo bot commented on a786007 Sep 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub Build Trigger Failure

The build trigger failed with the following error:

INVALID_EAS_JSON_ERROR: eas.json not found in the repository.

Please check your GitHub app installation settings and your Expo project's GitHub settings to make sure you've configured everything correctly.

Please sign in to comment.