File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 11name : Deploy to production
22
33on :
4+ workflow_dispatch :
45 push :
56 branches :
6- - master
7+ - main
78
89jobs :
910 deploy :
@@ -12,11 +13,19 @@ jobs:
1213 steps :
1314 - uses : actions/checkout@master
1415
15- - name : executing remote upgrade
16- 16+ - name : Use Node.js
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : ' 20.x'
20+ - run : npm ci
21+ - run : npm run build --if-present
22+
23+ - name : copy compiled assets to remote
24+ uses : appleboy/scp-action@v4
1725 with :
1826 host : ${{ secrets.DEPLOY_HOST }}
1927 username : ${{ secrets.DEPLOY_USERNAME }}
2028 key : ${{ secrets.DEPLOY_SSH_KEY }}
2129 port : ${{ secrets.DEPLOY_PORT }}
22- script : cd /var/www/docs.flarum.org && ./deploy.sh
30+ source : build
31+ target : public_html/docs.flarum.org
You can’t perform that action at this time.
0 commit comments