28 lines
792 B
YAML
28 lines
792 B
YAML
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
|
||
|
|
||
|
jobs:
|
||
|
deploy:
|
||
|
runs-on: arch
|
||
|
steps:
|
||
|
- name: Check out repository code
|
||
|
uses: actions/checkout@v3
|
||
|
- name: Install dependencies
|
||
|
run: time npm install
|
||
|
- name: Run Tests
|
||
|
run: npm run test -- --ignore-only
|
||
|
- name: Deply if new version
|
||
|
run: |
|
||
|
echo ""
|
||
|
echo "------------------------------------"
|
||
|
echo ""
|
||
|
CURR_VER="$(cat package.json | jq -r .name)_v$(cat package.json | jq -r .version)"
|
||
|
echo "A"
|
||
|
CURR_NAME="$(cat package.json | jq -r .name) v$(cat package.json | jq -r .version)"
|
||
|
echo "B"
|
||
|
echo "Checking https://git.nfp.is/api/v1/repos/${{ github.repository }}/releases for name ${CURR_NAME}"
|
||
|
echo "C"
|