Update forgejo actions workflow to rsync to the server on push to master/develop
All checks were successful
Test / build (push) Successful in 7s

This commit is contained in:
Ethan Lane 2024-07-29 17:57:34 +01:00
parent 95afc76a5c
commit a3fe4d492e
4 changed files with 37 additions and 93 deletions

View file

@ -31,6 +31,8 @@ jobs:
node-version: 20.x
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn package
- run: cp -r ./bin ${{ secrets.PROD_REPO_PATH }}
- uses: https://github.com/JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}

View file

@ -0,0 +1,35 @@
name: Stage
on:
push:
branches:
- develop
jobs:
build:
runs-on: node
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test
- run: yarn lint
rsync:
needs: build
runs-on: node
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn package
- run: cp -r ./bin ${{ secrets.STAGE_REPO_PATH }}

View file

@ -7,7 +7,6 @@ on:
- hotfix/*
- renovate/*
- dependabot/*
- develop
jobs:
build: