Skip to content

Commit 5cea21e

Browse files
authored
beta1
1 parent 91e8246 commit 5cea21e

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,16 @@ name: CMake
33
on:
44
push:
55
branches: [ master ]
6+
tags:
7+
- 'v*'
68
pull_request:
79
branches: [ master ]
810

911
env:
10-
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
1112
BUILD_TYPE: Release
1213

1314
jobs:
1415
build:
15-
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
16-
# You can convert this to a matrix build if you need cross-platform coverage.
17-
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
1816
runs-on: windows-latest
1917

2018
steps:
@@ -23,12 +21,9 @@ jobs:
2321
submodules: recursive
2422

2523
- name: Configure CMake
26-
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
27-
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
2824
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
2925

3026
- name: Build
31-
# Build your program with the given configuration
3227
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
3328

3429
- name: Create Release
@@ -37,17 +32,18 @@ jobs:
3732
env:
3833
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3934
with:
40-
tag_name: latest
41-
release_name: Release
35+
tag_name: "${{ github.ref }}"
36+
release_name: "${{ github.ref }}"
4237
draft: false
43-
prerelease: true
38+
prerelease: false
39+
4440
- name: Upload Release Asset
4541
id: upload-release-asset
4642
uses: actions/upload-release-asset@v1
4743
env:
4844
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4945
with:
50-
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
46+
upload_url: ${{ steps.create_release.outputs.upload_url }}
5147
asset_path: "${{github.workspace}}/build/gmod/Release/gmod.dll"
5248
asset_name: gmod.dll
5349
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)