Skip to content

v0.2.4

v0.2.4 #22

Workflow file for this run

name: Continuous Deployment
on:
push:
branches:
- main
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- uses: actions/checkout@v4
- name: Install NPM Dependencies
run: pnpm i
- name: Build
run: npm run build
- uses: actions/upload-artifact@v4
with:
name: build
path: build/
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: ${{ github.event_name == 'release' && 'production' || 'development' }}
steps:
- name: Setup SSH Agent
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{secrets.DEPLOY_PRIVATE_KEY}}
- uses: actions/download-artifact@v4
with:
name: build
- name: Transfer artifact to target
run: scp -o "StrictHostKeyChecking no" -r ./* ${{secrets.DEPLOY_SSH_URL}}