Skip to content

Commit

Permalink
cicd for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
luceos committed Mar 29, 2024
1 parent 07d15e0 commit 43905c2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy to production

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master

- name: executing remote upgrade
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USERNAME }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
port: ${{ secrets.DEPLOY_PORT }}
script: cd /var/www/docs.flarum.org && ./deploy.sh
7 changes: 7 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

git pull

npm i

npm run build

0 comments on commit 43905c2

Please sign in to comment.