From e84079fb3da71a1123796ef2f83fea0aea1473fc Mon Sep 17 00:00:00 2001 From: jem Date: Mon, 13 Jul 2020 18:31:18 +0200 Subject: [PATCH] going to separate stable & unstable build --- .github/workflows/release.yml | 37 +++++++++++++++++------------------ RELEASING.md | 2 +- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32d82c9..cd06348 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,11 @@ -name: release prod +name: stable on: push: tags: '[0-9]+.[0-9]+.[0-9]+*' jobs: - test-matrix: - name: matrix test + stable: + name: stable runs-on: ubuntu-latest strategy: matrix: @@ -13,19 +13,6 @@ jobs: steps: - 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 }} uses: actions/setup-node@v1 @@ -44,6 +31,7 @@ jobs: chmod a+x mastodon-bot.js sha256sum mastodon-bot.js > target/mastodon-bot.js.sha256 sha512sum mastodon-bot.js > target/mastodon-bot.js.sha512 + shadow-cljs run shadow.cljs.build-report app target/build-report.html - name: Create Release id: create_release @@ -65,7 +53,7 @@ jobs: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./mastodon-bot.js asset_name: mastodon-bot.js - asset_content_type: application/json + asset_content_type: application/javascript - name: Upload mastodon-bot.js.sha256 id: upload-mastodon-bot-js-sha256 @@ -76,7 +64,7 @@ jobs: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./target/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 id: upload-mastodon-bot-js-sha512 @@ -87,7 +75,18 @@ jobs: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./target/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 env: diff --git a/RELEASING.md b/RELEASING.md index a427a09..9757d07 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -32,7 +32,7 @@ shadow-cljs release app shadow-cljs release app chmod a+x mastodon-bot.js rm -rf target/npm-build -mkdir target/npm-build +mkdir -p target/npm-build cp mastodon-bot.js target/npm-build/ cp package.json target/npm-build/ cp README.md target/npm-build/