Skip to content

Commit

Permalink
build: use reusable build and deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlatz committed Jan 11, 2025
1 parent d02af9d commit d616c2f
Showing 1 changed file with 9 additions and 35 deletions.
44 changes: 9 additions & 35 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,12 @@ on:
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: site
path: ./dist

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

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

- name: Deploy with SSH
uses: easingthemes/[email protected]
with:
SSH_PRIVATE_KEY: ${{ secrets.BIBLYS_ORG_SSH_PRIVATE_KEY }}
REMOTE_HOST: ${{ secrets.BIBLYS_ORG_SSH_HOST }}
REMOTE_USER: ${{ secrets.BIBLYS_ORG_SSH_USER }}
SOURCE: "dist/"
TARGET: "~/docs.biblys.org"
build-and-deploy:
uses: clemlatz/build-and-deploy/.github/workflows/workflow.yml@main
with:
build-output-directory: dist
remote-target-path: ~/blog.biblys.org
secrets:
ssh-private-key: ${{ secrets.BIBLYS_ORG_SSH_PRIVATE_KEY }}
ssh-remote-host: ${{ secrets.BIBLYS_ORG_SSH_HOST }}
ssh-remote-user: ${{ secrets.BIBLYS_ORG_SSH_USER }}

0 comments on commit d616c2f

Please sign in to comment.