Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
irony committed Sep 18, 2024
2 parents cbcb549 + 546ebc2 commit 40a89d9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 13 deletions.
13 changes: 2 additions & 11 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 @@ -24,10 +18,7 @@ jobs:
- name: Install dependencies
run: npm install

- name: Git user config
run: git config --global user.email "[email protected]"
- name: Git user config
run: 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 40a89d9

@expo
Copy link

@expo expo bot commented on 40a89d9 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 40a89d9 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.