test package a release
This commit is contained in:
parent
c6187eb178
commit
b009b533b4
2 changed files with 25 additions and 3 deletions
26
.github/workflows/release-dev.yml
vendored
26
.github/workflows/release-dev.yml
vendored
|
@ -24,7 +24,7 @@ jobs:
|
||||||
- run: npm install -g --save-dev shadow-cljs
|
- run: npm install -g --save-dev shadow-cljs
|
||||||
- run: shadow-cljs compile test
|
- run: shadow-cljs compile test
|
||||||
|
|
||||||
release-dev:
|
release-build-dev:
|
||||||
name: release dev
|
name: release dev
|
||||||
needs: test-matrix
|
needs: test-matrix
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -42,8 +42,30 @@ jobs:
|
||||||
- run: npm install -g --save-dev shadow-cljs
|
- run: npm install -g --save-dev shadow-cljs
|
||||||
- run: shadow-cljs release app
|
- run: shadow-cljs release app
|
||||||
- run: rm -rf target/npm-build
|
- run: rm -rf target/npm-build
|
||||||
- run: mkdir target/npm-build
|
- run: mkdir -p target/npm-build
|
||||||
- run: cp mastodon-bot.js target/npm-build/
|
- run: cp mastodon-bot.js target/npm-build/
|
||||||
- run: cp package.json target/npm-build/
|
- run: cp package.json target/npm-build/
|
||||||
- run: cp README.md target/npm-build/
|
- run: cp README.md target/npm-build/
|
||||||
- run: tar -cz -C target/npm-build -f target/npm-build.tgz .
|
- run: tar -cz -C target/npm-build -f target/npm-build.tgz .
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
id: create_release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: ${{ github.ref }}
|
||||||
|
release_name: Release ${{ github.ref }}
|
||||||
|
draft: true
|
||||||
|
prerelease: true
|
||||||
|
- name: Upload Release Asset
|
||||||
|
id: upload-release-asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: ./mastodon-bot.js
|
||||||
|
asset_name: mastodon-bot.js
|
||||||
|
asset_content_type: application/json
|
||||||
|
|
2
.github/workflows/test-matrix.yml
vendored
2
.github/workflows/test-matrix.yml
vendored
|
@ -2,7 +2,7 @@ name: Node.js CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master, automate_gh_release ]
|
branches: [ never ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
|
|
Reference in a new issue