From ed8f26ec50446c86ab7168110e5404cc323fd34b Mon Sep 17 00:00:00 2001 From: jem Date: Wed, 8 Jul 2020 09:36:07 +0200 Subject: [PATCH] fix build & prepare release --- .github/workflows/build.yml | 11 ++++------- README.md | 1 - package.json | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f088c1d..7f6c0bc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,8 @@ name: build-it -on: push +on: + push: + tags: + - '[0-9]+.[0-9]+.[0-9]+' jobs: build-it: @@ -40,14 +43,12 @@ jobs: echo ${{ github.branch == 'master' }} - name: build em - if: ${{ github.branch == 'master' }} run: | shadow-cljs release lib sha256sum target/lib.js > target/dda-masto-embedd.js.sha256 sha512sum target/lib.js > target/dda-masto-embedd.js.sha512 - name: Create Release - if: ${{ github.tag == '[0-9]+.[0-9]+.[0-9]+' }} id: create_release uses: actions/create-release@v1 env: @@ -59,7 +60,6 @@ jobs: prerelease: false - name: Upload masto-embedd.js - if: ${{ github.tag == '[0-9]+.[0-9]+.[0-9]+' }} id: upload-masto-embedd-js uses: actions/upload-release-asset@v1 env: @@ -71,7 +71,6 @@ jobs: asset_content_type: application/json - name: Upload masto-embedd.js.sha256 - if: ${{ github.tag == '[0-9]+.[0-9]+.[0-9]+' }} id: upload-masto-embedd-js-sha256 uses: actions/upload-release-asset@v1 env: @@ -83,7 +82,6 @@ jobs: asset_content_type: application/json - name: Upload masto-embedd.js.sha512 - if: ${{ github.tag == '[0-9]+.[0-9]+.[0-9]+' }} id: upload-masto-embedd-js-sha512 uses: actions/upload-release-asset@v1 env: @@ -95,7 +93,6 @@ jobs: asset_content_type: application/json - name: upload to npm - if: ${{ github.branch == 'master' }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | diff --git a/README.md b/README.md index 2a3fd03..fceec90 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,6 @@ shadow-cljs compile test ``` #adjust version vi package.json -git commit -am 'releasing' git tag -am 'releasing' git push --follow-tags diff --git a/package.json b/package.json index b06c014..da8f7a0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "dda-masto-embed", "author": "meissa GmbH", - "version": "0.1.0", + "version": "0.1.1", "homepage": "https://github.com/DomainDrivenArchitecture/dda-masto-embed", "repository": "https://github.com/DomainDrivenArchitecture/dda-masto-embed", "license": "Apache-2.0",