Ethan Lane
d85c812fbb
- Update the forgejo actions workflow to rsync to the server on push to the master/develop branch #204 Reviewed-on: #207 Reviewed-by: VylpesTester <tester@vylpes.com> Co-authored-by: Ethan Lane <ethan@vylpes.com> Co-committed-by: Ethan Lane <ethan@vylpes.com>
35 lines
639 B
YAML
35 lines
639 B
YAML
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 }} |