Feature: Challenge Single Page and Challenge List Page redesign (#29) #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Dev | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: development | |
steps: | |
- name: Checkout to repo | |
uses: actions/checkout@v4 | |
- name: Setup nodejs | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'v20.12.2' | |
- name: Corepack enable | |
run: corepack enable | |
- name: Check yarn version | |
run: yarn -v | |
- name: Install deps | |
run: yarn | |
- name: Run build | |
run: yarn build | |
env: | |
NODE_ENV: development | |
VITE_SERVER_URL: ${{ secrets.VITE_SERVER_URL }} | |
VITE_APP_VERSION: ${{ github.sha }} | |
- name: Copy files to VPS | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.SERVER_IP }} | |
username: ${{ secrets.SERVER_USER }} | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
source: './dist/' | |
target: ${{ secrets.DEV_BUILD_TARGET_LOCATION }} |