-
Notifications
You must be signed in to change notification settings - Fork 40
49 lines (41 loc) · 1.27 KB
/
windows_release.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Windows Release
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
env:
CC: gcc
steps:
- uses: cygwin/cygwin-install-action@master
with:
platform: x86_64
packages: gcc-core make ghostscript dos2unix zip cygrunsrv
- run: git config --global core.autocrlf input
- uses: actions/checkout@v4
- name: Build artifacts
run: >-
cd ${GITHUB_WORKSPACE} &&
export CC=gcc &&
./configure &&
make &&
make win
shell: C:\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
- name: Extract and format version
id: format_version
run: |
version=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///')
echo "VERSION=$version" >> $GITHUB_OUTPUT
shell: bash
- name: Create or Update Release
id: create_or_update_release
uses: softprops/[email protected]
with:
files: |
cntlm-*-win64.exe
cntlm-*-win64.zip
tag_name: ${{ steps.format_version.outputs.VERSION }}
name: Release ${{ steps.format_version.outputs.VERSION }}