diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e4f9d46..abc76a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,9 +23,6 @@ jobs: - name: Build for Windows run: make win32 - #- name: Build for Wasm - # run: make wasm - - name: Create Release id: create_release uses: actions/create-release@v1 @@ -44,21 +41,15 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./build/win32/*.exe - # asset_name: * - asset_content_type: application/octet-stream + asset_path: ./build/win32/qrean.zip + asset_name: qrean-win32-${{ steps.set_tag.outputs.tag_name }}.zip + + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ - - name: Publish package to NPM - - uses: actions/setup-node@v3 - with: - node-version: 20 - registry-url: https://registry.npmjs.org/ - #- uses: pnpm/action-setup@v2 - # with: - # version: 8 - #- run: pnpm i --frozen-lockfile --strict-peer-dependencies - #- run: pnpm run build - #- run: pnpm run test - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/Makefile b/Makefile index 20f95f6..20d56fd 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ dist: wasm git show :library.json | jq '.version="$(shell jq -r .version package.json)"' > library.json win32: - @BUILDDIR=$(abspath ./build/win32) CC=i686-w64-mingw32-gcc AR=i686-w64-mingw32-ar NO_SHLIB=1 DLL=1 CFLAGS="$(CFLAGS)" $(MAKE) clean cli + @BUILDDIR=$(abspath ./build/win32) CC=i686-w64-mingw32-gcc AR=i686-w64-mingw32-ar NO_SHLIB=1 DLL=1 CFLAGS="$(CFLAGS)" $(MAKE) clean cli && (cd build/win32; zip qrean.zip qrean*.exe) test: cli @LD_LIBRARY_PATH=$(BUILDDIR) BUILDDIR=$(BUILDDIR) CFLAGS="$(CFLAGS)" $(MAKE) -C tests