|
|
|
@ -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: |
|
|
|
|
|