Skip to content

Commit

Permalink
ci: copy frontend/dist to /home/isucon/webapp/public/
Browse files Browse the repository at this point in the history
  • Loading branch information
misodengaku committed Nov 24, 2023
1 parent ba0bd07 commit 531182b
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ jobs:
# Error: File was unable to be removed Error: EACCES: permission denied, rmdir
# https://github.com/actions/checkout/issues/211
- name: chown workdir
run:
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE

- name: Check out code into the Go module directory
uses: actions/checkout@v3
Expand All @@ -59,11 +58,12 @@ jobs:
run: |
make down/go
make up/go
- name: "[frontend] build"
working-directory: ./frontend
run: |
make
cp -r dist/ /home/isucon/webapp/public/
# bench
- name: "[bench] Get deps"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ jobs:
- name: "[frontend] build"
working-directory: ./frontend
run: make
run: |
make
cp -r dist/ /home/isucon/webapp/public/
# bench
- name: "[bench] Get deps"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/perl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ jobs:
# Error: File was unable to be removed Error: EACCES: permission denied, rmdir
# https://github.com/actions/checkout/issues/211
- name: chown workdir
run:
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE

# containers
- name: "setup containers"
Expand All @@ -55,7 +54,9 @@ jobs:
- name: "[frontend] build"
working-directory: ./frontend
run: make
run: |
make
cp -r dist/ /home/isucon/webapp/public/
# bench
- name: "[bench] Get deps"
Expand All @@ -82,4 +83,3 @@ jobs:
run: |
go clean -testcache
go test -p=1 -v ./...
1 change: 1 addition & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
working-directory: ./frontend
run: |
make
cp -r dist/ /home/isucon/webapp/public/
# bench
- name: "[bench] Get deps"
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.21.1'
go-version: "1.21.1"
id: go
- uses: actions/setup-node@v4
with:
Expand All @@ -43,7 +43,9 @@ jobs:
- name: "[frontend] build"
working-directory: ./frontend
run: make
run: |
make
cp -r dist/ /home/isucon/webapp/public/
- name: "[bench] Get deps"
working-directory: ./bench
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.21.1'
go-version: "1.21.1"
- uses: actions/setup-node@v4
with:
node-version: 20
Expand All @@ -42,7 +42,9 @@ jobs:
- name: "[frontend] build"
working-directory: ./frontend
run: make
run: |
make
cp -r dist/ /home/isucon/webapp/public/
- name: "[bench] Get deps"
working-directory: ./bench
Expand Down

0 comments on commit 531182b

Please sign in to comment.