Fixed Matrix Logo
All checks were successful
Deploy to production / Build (push) Successful in 15m28s
All checks were successful
Deploy to production / Build (push) Successful in 15m28s
This commit is contained in:
parent
7884401576
commit
e1e932eee1
3 changed files with 8 additions and 16 deletions
38
.forgejo/workflows/master.yml
Normal file
38
.forgejo/workflows/master.yml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
name: Deploy to production
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: npm
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
|
||||
- name: Set up SSH
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
|
||||
- name: Connect to server
|
||||
run: |
|
||||
apt-get update &&
|
||||
apt-get install -y rsync &&
|
||||
rsync --version &&
|
||||
rsync -avz --no-perms --no-times --delete -e "ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }}" dist/ ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }}:octubre/main/
|
||||
Loading…
Add table
Add a link
Reference in a new issue