separate test & release

This commit is contained in:
jem 2020-06-29 09:23:59 +02:00
parent 43b03b2740
commit 7d1f729bac
2 changed files with 34 additions and 8 deletions

32
.github/workflows/release-dev.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: Node.js CI
on:
push:
branches: [ master, automate_gh_release ]
pull_request:
branches: [ master ]
jobs:
release-dev:
name: release dev
needs: test-matrix
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm install -g --save-dev shadow-cljs
- run: shadow-cljs release app
- run: rm -rf target/npm-build
- run: mkdir target/npm-build
- run: cp mastodon-bot.js target/npm-build/
- run: cp package.json target/npm-build/
- run: cp README.md target/npm-build/
- run: tar -cz -C target/npm-build -f target/npm-build.tgz .

View file

@ -7,7 +7,8 @@ on:
branches: [ master ]
jobs:
build:
test-matrix:
name: matrix test
runs-on: ubuntu-latest
strategy:
matrix:
@ -22,10 +23,3 @@ jobs:
- run: npm install
- run: npm install -g --save-dev shadow-cljs
- run: shadow-cljs compile test
- run: shadow-cljs release app
- run: rm -rf target/npm-build
- run: mkdir target/npm-build
- run: cp mastodon-bot.js target/npm-build/
- run: cp package.json target/npm-build/
- run: cp README.md target/npm-build/
- run: tar -cz -C target/npm-build -f target/npm-build.tgz .