Skip to content

fix: badge and emote alignment #362

fix: badge and emote alignment

fix: badge and emote alignment #362

Workflow file for this run

name: Deploy to AWS
on:
push:
branches:
- release
jobs:
build-and-deploy:
env:
VITE_SLUG: /
VITE_BACKEND_URL: https://server.hehechat.io
VITE_EDITOR_URL: https://editor.hehechat.io
VITE_SINK_URL: https://browsersource.hehechat.io
VITE_REPLAY_URL: https://replay.hehechat.io
VITE_ADMIN_URL: https://admin.hehechat.io
VITE_CLIENT_ID: 7tmrvoh4llxtx9yft7pwhtgbi61ba9
VITE_ADMIN_CLIENT_ID: zjttjwday68ycl72iyb7q5s0u02ply
VITE_BUILDNUMBER: ${{ github.run_number }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: yarn install --immutable
- name: Build project
run: yarn build
- name: Transfer files to AWS
env:
AWS_SSH_HOST: ${{ secrets.AWS_SSH_HOST }}
AWS_SSH_USER: ${{ secrets.AWS_SSH_USER }}
AWS_SSH_KEY: ${{ secrets.AWS_SSH_KEY }}
AWS_SSH_PATH: '/home/ec2-user/live/hehechat-client'
run: |
mkdir -p ~/.ssh
echo "${AWS_SSH_KEY}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H "${AWS_SSH_HOST}" >> ~/.ssh/known_hosts
# Dateien mit rsync übertragen
rsync -avz --delete ./dist "${AWS_SSH_USER}@${AWS_SSH_HOST}:${AWS_SSH_PATH}"