Skip to content

Commit 778dcda

Browse files
committed
Bump version to 0.5.6.2 and add job to publish release on tags.
1 parent 0d03716 commit 778dcda

File tree

2 files changed

+40
-9
lines changed

2 files changed

+40
-9
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Build USVFS
33
on:
44
push:
55
branches: [master, dev/cmake]
6+
tags:
7+
- "*"
68
pull_request:
79
types: [opened, synchronize, reopened]
810

@@ -65,19 +67,14 @@ jobs:
6567
path: ./test/bin
6668

6769
# merge x86 / x64 artifacts
68-
merge-artifacts:
70+
merge-artifacts-for-tests:
6971
runs-on: ubuntu-latest
70-
name: Merge Artifacts
72+
name: Merge Test Artifacts
7173
needs: build
7274
strategy:
7375
matrix:
7476
config: [Debug, Release]
7577
steps:
76-
- name: Merge USVFS install
77-
uses: actions/upload-artifact/merge@v4
78-
with:
79-
name: usvfs_${{ matrix.config }}
80-
pattern: usvfs_${{ matrix.config }}_*
8178
- name: Merge USVFS libs
8279
uses: actions/upload-artifact/merge@v4
8380
with:
@@ -94,9 +91,21 @@ jobs:
9491
name: usvfs-tests_${{ matrix.config }}
9592
pattern: usvfs-tests_${{ matrix.config }}_*
9693

94+
# merge x86 / x64 artifacts
95+
merge-artifacts-for-release:
96+
runs-on: ubuntu-latest
97+
name: Merge Install Artifacts
98+
needs: build
99+
steps:
100+
- name: Merge USVFS install
101+
uses: actions/upload-artifact/merge@v4
102+
with:
103+
name: usvfs
104+
pattern: usvfs_*
105+
97106
test:
98107
name: Test USVFS
99-
needs: merge-artifacts
108+
needs: merge-artifacts-for-tests
100109
runs-on: windows-2022
101110
strategy:
102111
matrix:
@@ -136,3 +145,25 @@ jobs:
136145
if-no-files-found: ignore
137146
retention-days: 7
138147
overwrite: true
148+
149+
publish:
150+
if: github.ref_type == 'tag'
151+
needs: [merge-artifacts-for-release, test]
152+
runs-on: windows-2022
153+
permissions:
154+
contents: write
155+
steps:
156+
- name: Download Artifact
157+
uses: actions/download-artifact@master
158+
with:
159+
name: usvfs
160+
path: ./install
161+
162+
- name: Create USVFS Base archive
163+
run: 7z a usvfs_${{ github.ref_name }}.7z ./install/*
164+
165+
- name: Publish Release
166+
env:
167+
GH_TOKEN: ${{ github.token }}
168+
GH_REPO: ${{ github.repository }}
169+
run: gh release create --draft=false --notes="Release ${{ github.ref_name }}" "${{ github.ref_name }}" ./usvfs_${{ github.ref_name }}.7z

include/usvfs/usvfs_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define USVFS_VERSION_MAJOR 0
44
#define USVFS_VERSION_MINOR 5
55
#define USVFS_VERSION_BUILD 6
6-
#define USVFS_VERSION_REVISION 1
6+
#define USVFS_VERSION_REVISION 2
77

88
#define USVFS_BUILD_STRING ""
99
#define USVFS_BUILD_WSTRING L""

0 commit comments

Comments
 (0)