Skip to content

Commit efd972c

Browse files
committed
workflow: add release action to test workflow
1 parent 5cd68a4 commit efd972c

File tree

5 files changed

+51
-4
lines changed

5 files changed

+51
-4
lines changed

.github/actions/DOCUMENTATION.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Workflow documentation
2+
3+
apparently

.github/actions/release/action.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ inputs:
1212
version-name:
1313
description: "Path to the build folder"
1414
required: true
15+
draft:
16+
description: "Release is a draft"
17+
required: false
18+
default: true # to allow amendment of release notes
1519
prelease:
1620
description: "Is this a pre-release"
1721
required: false
18-
default: true # to allow amendment of release notes
22+
default: true
1923
build-folder:
2024
description: "Path to the build folder"
2125
required: false
@@ -29,8 +33,8 @@ runs:
2933
with:
3034
tag_name: v${{ inputs.version }}
3135
release_name: v${{ inputs.version }}
32-
draft: ${{ inputs.prelease }}
33-
prerelease: true
36+
draft: ${{ inputs.draft }}
37+
prerelease: ${{ inputs.prelease }}
3438
env:
3539
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3640

.github/workflows/build-develop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Plugin Dev Release
1+
name: Build Plugin Dev Release 2
22

33
on:
44
push:

.github/workflows/build-develop2.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,10 @@ jobs:
3232

3333
- name: Run tests
3434
uses: ./.github/actions/tests
35+
36+
- name: Create GitHub Release
37+
uses: ./.github/actions/release
38+
with:
39+
build-config: ${{env.BUILD_CONFIGURATION}}
40+
version-name: ${{env.VERSION}}
41+
prelease: true

.github/workflows/build-main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build Plugin Release
2+
3+
on: push
4+
5+
env:
6+
BUILD_CONFIGURATION: Release
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest
11+
12+
steps:
13+
- name: Check out repository
14+
uses: actions/checkout@v3
15+
16+
- name: Get latest release version
17+
uses: ./.github/actions/version
18+
with:
19+
repository: ${{ github.repository }}
20+
ref: ${{ github.ref }}
21+
22+
- name: Install conan & packages
23+
uses: ./.github/actions/conan
24+
with:
25+
build-config: ${{env.BUILD_CONFIGURATION}}
26+
27+
- name: Build DLL
28+
uses: ./.github/actions/build
29+
with:
30+
build-config: ${{env.BUILD_CONFIGURATION}}
31+
32+
- name: Run tests
33+
uses: ./.github/actions/tests

0 commit comments

Comments
 (0)