Skip to content

feat: add custom css (#47) #13

feat: add custom css (#47)

feat: add custom css (#47) #13

name: Build & Deploy (Experimental)
on:
push:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Format code
run: pnpm format
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: formatted code"
commit_author: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
branch: ${{ github.head_ref }}
- name: Build
run: VITE_FACEIT_API_KEY=${{ secrets.VITE_FACEIT_API_KEY }} VITE_IS_TESTING=true pnpm run build
- name: Deploy
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: '-rlgoDzvc -i --delete'
SOURCE: 'dist/'
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET_TESTING }}
EXCLUDE: '/dist/, /node_modules/'