Skip to content

Commit a5ebcd4

Browse files
committed
Add msi creation to release CI
1 parent 1cc4fb9 commit a5ebcd4

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/windows.yml

+15
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,21 @@ jobs:
6060
shell: bash
6161
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
6262

63+
- name: Create msi installer
64+
run: |
65+
dotnet tool install --global wix
66+
cargo install cargo-wix
67+
cargo wix --output installer.msi
68+
- name: Upload msi artifact
69+
uses: actions/upload-release-asset@v1
70+
env:
71+
GITHUB_TOKEN: ${{ github.token }}
72+
with:
73+
upload_url: ${{ steps.create_release.outputs.upload_url }}
74+
asset_path: ./installer.msi
75+
asset_name: tmc-cli-rust-${{ steps.get_version.outputs.VERSION }}.msi
76+
asset_content_type: application/octet-stream
77+
6378
- name: Deploy
6479
run: |
6580
$env:python_version=$(python -c 'import sys; print(\".\".join(map(str, sys.version_info[:3])))')

snap/snapcraft.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: tmc-cli-rust
22
title: TestMyCode CLI
33
base: core20
4-
version: 1.1.2
4+
version: 1.1.3
55
issues: https://github.com/rage/tmc-cli-rust/issues
66
source-code: https://github.com/rage/tmc-cli-rust.git
77
website: https://tmc.mooc.fi/

0 commit comments

Comments
 (0)