16
16
test :
17
17
runs-on : windows-latest
18
18
steps :
19
- - uses : actions/checkout@v4
19
+ - uses : actions/checkout@v4.1.7
20
20
21
21
- name : Enable long paths for git
22
22
run : git config --system core.longpaths true # allow long paths from git deps
@@ -46,15 +46,15 @@ jobs:
46
46
matrix :
47
47
target : [i686-pc-windows-msvc, x86_64-pc-windows-msvc]
48
48
steps :
49
- - uses : actions/checkout@v4
49
+ - uses : actions/checkout@v4.1.7
50
50
51
51
- id : " auth"
52
- uses : google-github-actions/auth@v2
52
+ uses : google-github-actions/auth@v2.1.5
53
53
with :
54
54
project_id : ${{ secrets.GCP_PROJECT_ID }}
55
55
credentials_json : ${{ secrets.GCP_SA_KEY }}
56
56
- name : " Set up Cloud SDK"
57
- uses : google-github-actions/setup-gcloud@v2
57
+ uses : google-github-actions/setup-gcloud@v2.1.1
58
58
59
59
- name : Enable long paths for git
60
60
run : git config --system core.longpaths true # allow long paths from git deps
@@ -76,17 +76,13 @@ jobs:
76
76
cargo install cargo-wix
77
77
cargo wix --output installer.msi
78
78
- name : Upload msi artifact
79
- uses : actions/upload-release-asset@v1
80
- env :
81
- GITHUB_TOKEN : ${{ github.token }}
79
+ uses : svenstaro/upload-release-action@2.9.0
82
80
with :
83
- upload_url : ${{ github.event.release.upload_url }}
84
- asset_path : ./installer.msi
85
- asset_name : tmc-cli-rust-${{ steps.get_version.outputs.VERSION }}.msi
86
- asset_content_type : application/octet-stream
81
+ file : " ./installer.msi"
82
+ asset_name : tmc-cli-rust-$tag.msi
87
83
88
84
- name : Deploy
89
85
run : |
90
- $env:python_version=$(python -c 'import sys; print(\".\ ".join(map(str, sys.version_info[:3])))')
86
+ $env:python_version=$(python -c 'import sys; print(". ".join(map(str, sys.version_info[:3])))')
91
87
$env:CLOUDSDK_PYTHON="C:\hostedtoolcache\windows\Python\$env:python_version\x64\python"
92
88
gsutil cp target/${{ matrix.target }}/release/tmc.exe gs://${{ secrets.GCP_BUCKET }}/tmc-cli-rust/tmc-cli-rust-${{ matrix.target }}-${{ steps.get_version.outputs.VERSION }}.exe
0 commit comments