From a5ebcd4da91950593253dc5d80f7d2f22dbdf7ab Mon Sep 17 00:00:00 2001 From: Heliozoa Date: Mon, 9 Sep 2024 14:06:19 +0300 Subject: [PATCH 1/3] Add msi creation to release CI --- .github/workflows/windows.yml | 15 +++++++++++++++ snap/snapcraft.yaml | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 370f5ad..4edfa35 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -60,6 +60,21 @@ jobs: shell: bash run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + - name: Create msi installer + run: | + dotnet tool install --global wix + cargo install cargo-wix + cargo wix --output installer.msi + - name: Upload msi artifact + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./installer.msi + asset_name: tmc-cli-rust-${{ steps.get_version.outputs.VERSION }}.msi + asset_content_type: application/octet-stream + - name: Deploy run: | $env:python_version=$(python -c 'import sys; print(\".\".join(map(str, sys.version_info[:3])))') diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index ea64656..c7d7845 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,7 +1,7 @@ name: tmc-cli-rust title: TestMyCode CLI base: core20 -version: 1.1.2 +version: 1.1.3 issues: https://github.com/rage/tmc-cli-rust/issues source-code: https://github.com/rage/tmc-cli-rust.git website: https://tmc.mooc.fi/ From 50958e372f9491a9c4b253fe8015882df2dbac45 Mon Sep 17 00:00:00 2001 From: Heliozoa Date: Mon, 9 Sep 2024 14:08:57 +0300 Subject: [PATCH 2/3] Fix upload url in ci --- .github/workflows/windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 4edfa35..5d2997e 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -70,7 +70,7 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} with: - upload_url: ${{ steps.create_release.outputs.upload_url }} + upload_url: ${{ github.event.release.upload_url }} asset_path: ./installer.msi asset_name: tmc-cli-rust-${{ steps.get_version.outputs.VERSION }}.msi asset_content_type: application/octet-stream From 4a2a5889995d543486c4f9230e449319a9d2223c Mon Sep 17 00:00:00 2001 From: Heliozoa Date: Mon, 9 Sep 2024 14:21:35 +0300 Subject: [PATCH 3/3] Update last github action --- .github/workflows/linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index c207a45..300c901 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -9,7 +9,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install fmt, clippy and nightly for the fmt run: |