Skip to content

Commit

Permalink
build: add deploy github action
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlatz committed Jan 8, 2025
1 parent ec14c52 commit 648a75d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 41 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/actions.yaml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy

on:
push:
branches: [master]
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Build
run: npm install && npm run build

- name: Upload artifact
uses: actions/upload-artifact@master
with:
name: bundle
path: ./dist

deploy:
runs-on: ubuntu-latest
needs: build

steps:
- name: Download artifact
uses: actions/download-artifact@master
with:
name: bundle
path: ./dist

- name: Deploy with SSH
uses: easingthemes/[email protected]
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
SOURCE: "dist/"
TARGET: "~/biblys.org"

0 comments on commit 648a75d

Please sign in to comment.