-
Notifications
You must be signed in to change notification settings - Fork 28
32 lines (25 loc) · 844 Bytes
/
Copy pathbuild.yml
File metadata and controls
32 lines (25 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: build
on: [ push, pull_request ]
jobs:
build:
runs-on: windows-latest
steps:
- name: setenv
run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV
- uses: actions/checkout@v3
- uses: jwlawson/actions-setup-cmake@v1.13
- name: configure
run: cmake -S . -B build -G"Visual Studio 17 2022"
- name: build
run: cmake --build build --config release
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/Release/sshpass.exe
- name: Publish to Winget
uses: vedantmgoyal9/winget-releaser@main
if: startsWith(github.ref, 'refs/tags/')
with:
identifier: xhcoding.sshpass-win32
token: ${{ secrets.WINGET_TOKEN }}