Skip to content

Commit

Permalink
ci: build frontend on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
h11 committed Nov 10, 2020
1 parent 4809448 commit 61cca02
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 28 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# git config filter.empty.smudge "cat"
# git config filter.empty.clean "sed -n ''"
dotenv filter=empty
frontend/_build/* -diff
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,23 @@ jobs:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: actions/[email protected]
with:
node-version: '14.x'
- uses: actions/[email protected]
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- run: |
npm i -g pnpm@5
pnpm install
make build
echo '!/_build' > .gitignore
git add -A .
git commit --allow-empty-message -m
working-directory: ./frontend
- name: deploy heroku
run: git push --force https://heroku:[email protected]/fbox.git
env:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/_build
_build
node_modules
2 changes: 0 additions & 2 deletions frontend/_build/app.a7674dc8.js

This file was deleted.

1 change: 0 additions & 1 deletion frontend/_build/app.a7674dc8.js.map

This file was deleted.

20 changes: 0 additions & 20 deletions frontend/_build/index.html

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/_build/sw.js

This file was deleted.

1 change: 0 additions & 1 deletion frontend/_build/sw.js.map

This file was deleted.

0 comments on commit 61cca02

Please sign in to comment.