Skip to content

Commit a4c961e

Browse files
committed
trying new workflow layout
1 parent 12edd7b commit a4c961e

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,23 @@ jobs:
5959
./vcpkg/vcpkg install --triplet x64-osx
6060
6161
- name: Package release
62+
if: matrix.os != 'windows-latest'
6263
uses: thedoctor0/zip-release@0.7.5
6364
with:
6465
directory: ${{ github.workspace }}/vcpkg
6566
filename: ${{ github.workspace }}/vcpkg-${{ matrix.os }}.zip
6667

68+
- name: Package windows
69+
if: matrix.os == 'windows-latest'
70+
uses: thedoctor0/zip-release@0.7.5
71+
with:
72+
type: 'zip'
73+
directory: vcpkg
74+
path: .
75+
filename: vcpkg-${{ matrix.os }}.zip
76+
6777
- name: Publish release
68-
if : matrix.os != 'windows-latest'
78+
if: matrix.os != 'windows-latest'
6979
uses: softprops/action-gh-release@v1
7080
with:
7181
tag_name: v${{ inputs.release }}
@@ -75,13 +85,11 @@ jobs:
7585
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7686

7787
- name: Publish windows
78-
if : matrix.os == 'windows-latest'
88+
if: matrix.os == 'windows-latest'
7989
uses: softprops/action-gh-release@v1
8090
with:
8191
tag_name: v${{ inputs.release }}
8292
name: v${{ inputs.release }}
83-
files: ${{ github.workspace }}/vcpkg-${{ matrix.os }}.zip
93+
files: vcpkg-${{ matrix.os }}.zip
8494
env:
85-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86-
87-
95+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)