From 1b4d2c6bb85061a9d79e2cbdb941a1160f3651d5 Mon Sep 17 00:00:00 2001 From: Alexander Samusev <41779041+alvicsam@users.noreply.github.com> Date: Wed, 26 Mar 2025 12:06:51 +0100 Subject: [PATCH] ci: modify release according to #162 (#269) PR modifies release workflow according to changes requested in https://github.com/paritytech/revive/issues/162#issuecomment-2751287953 --- .github/workflows/release.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e26e326..3aa5355 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -214,15 +214,15 @@ jobs: - name: Compress Artifact run: | - tar -czf $(pwd)/resolc-wasm32-unknown-emscripten.tar.gz -C ./target/wasm32-unknown-emscripten/release/ \ - resolc.js \ - resolc.wasm \ - resolc_web.js + mkdir -p resolc-wasm32-unknown-emscripten + mv ./target/wasm32-unknown-emscripten/release/resolc.js ./resolc-wasm32-unknown-emscripten/ + mv ./target/wasm32-unknown-emscripten/release/resolc.wasm ./resolc-wasm32-unknown-emscripten/ + mv ./target/wasm32-unknown-emscripten/release/resolc_web.js ./resolc-wasm32-unknown-emscripten/ - uses: actions/upload-artifact@v4 with: name: resolc-wasm32-unknown-emscripten - path: resolc-wasm32-unknown-emscripten.tar.gz + path: resolc-wasm32-unknown-emscripten/* retention-days: 1 create-release: @@ -241,13 +241,10 @@ jobs: run: | lipo resolc-aarch64-apple-darwin resolc-x86_64-apple-darwin -create -output resolc-universal-apple-darwin - - name: Compress Artifacts + - name: Make Executable run: | chmod +x resolc-x86_64-unknown-linux-musl chmod +x resolc-universal-apple-darwin - tar -czf resolc-x86_64-unknown-linux-musl.tar.gz resolc-x86_64-unknown-linux-musl - tar -czf resolc-universal-apple-darwin.tar.gz resolc-universal-apple-darwin - zip -j resolc-x86_64-pc-windows-msvc.zip resolc-x86_64-pc-windows-msvc.exe - name: create-release uses: softprops/action-gh-release@v2 @@ -263,7 +260,9 @@ jobs: draft: true target_commitish: ${{ github.sha }} files: | - resolc-x86_64-unknown-linux-musl.tar.gz - resolc-universal-apple-darwin.tar.gz - resolc-wasm32-unknown-emscripten.tar.gz - resolc-x86_64-pc-windows-msvc.zip + resolc-x86_64-unknown-linux-musl + resolc-universal-apple-darwin + resolc-x86_64-pc-windows-msvc.exe + resolc.js + resolc.wasm + resolc_web.js