tenorjs-v2/.gitea/workflows/deploy.yml
Skylar Grant a00b2846d1
Some checks failed
TenorJS-v2 Deploy Automation / build (pull_request) Failing after 5s
action_ref -> base_ref
2024-09-22 20:20:15 -04:00

40 lines
919 B
YAML

name: TenorJS-v2 Deploy Automation
on:
pull_request:
branches:
- main
env:
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
DHUB_PWORD: ${{ secrets.DHUB_PWORD }}
branch: ${{ github.base_ref }}
jobs:
build:
runs-on: self-hosted
steps:
- name: Pull latest from Git
run: |
echo "$branch"
pwd
whoami
mkdir -p /var/lib/act_runner/
cd /var/lib/act_runner/
if [ ! -d "tenorjs-v2" ]; then
git clone https://git.vfsh.dev/voidf1sh/tenorjs-v2
cd tenorjs-v2
else
cd tenorjs-v2
git pull
fi
git checkout "$branch"
- name: Run tests
run: |
cd /var/lib/act_runner/tenorjs-v2
npm install
npm run test
- name: Publish to NPM
run: |
cd /var/lib/act_runner/tenorjs-v2
npm publish