going to separate stable & unstable build
This commit is contained in:
parent
5f23a98920
commit
e84079fb3d
2 changed files with 19 additions and 20 deletions
37
.github/workflows/release.yml
vendored
37
.github/workflows/release.yml
vendored
|
@ -1,11 +1,11 @@
|
||||||
name: release prod
|
name: stable
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags: '[0-9]+.[0-9]+.[0-9]+*'
|
tags: '[0-9]+.[0-9]+.[0-9]+*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-matrix:
|
stable:
|
||||||
name: matrix test
|
name: stable
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -13,19 +13,6 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Cache node modules
|
|
||||||
uses: actions/cache@v2
|
|
||||||
env:
|
|
||||||
cache-name: cache-node-modules
|
|
||||||
with:
|
|
||||||
# npm cache files are stored in `~/.npm` on Linux/macOS
|
|
||||||
path: ~/.npm
|
|
||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
${{ runner.os }}-build-
|
|
||||||
${{ runner.os }}-
|
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
|
@ -44,6 +31,7 @@ jobs:
|
||||||
chmod a+x mastodon-bot.js
|
chmod a+x mastodon-bot.js
|
||||||
sha256sum mastodon-bot.js > target/mastodon-bot.js.sha256
|
sha256sum mastodon-bot.js > target/mastodon-bot.js.sha256
|
||||||
sha512sum mastodon-bot.js > target/mastodon-bot.js.sha512
|
sha512sum mastodon-bot.js > target/mastodon-bot.js.sha512
|
||||||
|
shadow-cljs run shadow.cljs.build-report app target/build-report.html
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
@ -65,7 +53,7 @@ jobs:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./mastodon-bot.js
|
asset_path: ./mastodon-bot.js
|
||||||
asset_name: mastodon-bot.js
|
asset_name: mastodon-bot.js
|
||||||
asset_content_type: application/json
|
asset_content_type: application/javascript
|
||||||
|
|
||||||
- name: Upload mastodon-bot.js.sha256
|
- name: Upload mastodon-bot.js.sha256
|
||||||
id: upload-mastodon-bot-js-sha256
|
id: upload-mastodon-bot-js-sha256
|
||||||
|
@ -76,7 +64,7 @@ jobs:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./target/mastodon-bot.js.sha256
|
asset_path: ./target/mastodon-bot.js.sha256
|
||||||
asset_name: mastodon-bot.js.sha256
|
asset_name: mastodon-bot.js.sha256
|
||||||
asset_content_type: application/json
|
asset_content_type: text/plain
|
||||||
|
|
||||||
- name: Upload mastodon-bot.js.sha512
|
- name: Upload mastodon-bot.js.sha512
|
||||||
id: upload-mastodon-bot-js-sha512
|
id: upload-mastodon-bot-js-sha512
|
||||||
|
@ -87,7 +75,18 @@ jobs:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./target/mastodon-bot.js.sha512
|
asset_path: ./target/mastodon-bot.js.sha512
|
||||||
asset_name: mastodon-bot.js.sha512
|
asset_name: mastodon-bot.js.sha512
|
||||||
asset_content_type: application/json
|
asset_content_type: text/plain
|
||||||
|
|
||||||
|
- name: Upload build-report
|
||||||
|
id: build-report
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: ./target/build-report
|
||||||
|
asset_name: build-report.html
|
||||||
|
asset_content_type: text/html
|
||||||
|
|
||||||
- name: upload to npm
|
- name: upload to npm
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -32,7 +32,7 @@ shadow-cljs release app
|
||||||
shadow-cljs release app
|
shadow-cljs release app
|
||||||
chmod a+x mastodon-bot.js
|
chmod a+x mastodon-bot.js
|
||||||
rm -rf target/npm-build
|
rm -rf target/npm-build
|
||||||
mkdir target/npm-build
|
mkdir -p target/npm-build
|
||||||
cp mastodon-bot.js target/npm-build/
|
cp mastodon-bot.js target/npm-build/
|
||||||
cp package.json target/npm-build/
|
cp package.json target/npm-build/
|
||||||
cp README.md target/npm-build/
|
cp README.md target/npm-build/
|
||||||
|
|
Reference in a new issue