fix releasing

This commit is contained in:
jem 2020-07-08 20:35:30 +02:00
parent 1466c3123f
commit 56f33f95cb

View file

@ -44,9 +44,9 @@ jobs:
- name: build em - name: build em
run: | run: |
shadow-cljs release lib shadow-cljs release frontend
sha256sum target/lib.js > target/dda-masto-embedd.js.sha256 sha256sum public/main.js > target/dda-masto-embedd.js.sha256
sha512sum target/lib.js > target/dda-masto-embedd.js.sha512 sha512sum public/main.js > target/dda-masto-embedd.js.sha512
- name: Create Release - name: Create Release
id: create_release id: create_release
@ -66,7 +66,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: target/lib.js asset_path: public/main.js
asset_name: dda-masto-embed.js asset_name: dda-masto-embed.js
asset_content_type: application/json asset_content_type: application/json
@ -97,7 +97,7 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: | run: |
mkdir -p target/npm-build mkdir -p target/npm-build
cp target/lib.js target/npm-build/ cp public/main.js target/npm-build/dda-masto-embedd.js
cp target/dda-masto-embedd.js.sha256 target/npm-build/ cp target/dda-masto-embedd.js.sha256 target/npm-build/
cp target/dda-masto-embedd.js.sha512 target/npm-build/ cp target/dda-masto-embedd.js.sha512 target/npm-build/
cp package.json target/npm-build/ cp package.json target/npm-build/