Skip to content

Commit

Permalink
force web
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Jun 16, 2023
1 parent aba5681 commit b116ba0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jobs:
run: ./deployment/scripts/build_judgels_grader.sh

deploy-web:
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/force-web'
runs-on: ubuntu-22.04
env:
WEB_HOST: ${{ secrets.WEB_HOST }}
Expand All @@ -171,21 +171,18 @@ jobs:
node-version: '16'

- name: Build web
if: steps.changed-files.outputs.web == '1'
run: |
cd web
yarn install
yarn build
- name: Install SSH key
if: steps.changed-files.outputs.web == '1'
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.WEB_PRIVATE_KEY }}
known_hosts: ${{ secrets.WEB_KNOWN_HOSTS }}

- name: Rsync web
if: steps.changed-files.outputs.web == '1'
run: rsync -avzh --delete web/build/ root@${WEB_HOST}:/var/www/html/judgels --delete

deploy-tlx-staging:
Expand Down

0 comments on commit b116ba0

Please sign in to comment.