Skip to content

Commit 18b655a

Browse files
committed
Initial build-release test successful.
Let's include the release's exact URL too
1 parent 3e89bac commit 18b655a

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/build-release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,17 @@ jobs:
1212
- name: Set Tag Name
1313
# trim prefix from ref to get tag name
1414
run: echo "TAG_NAME=${GITHUB_REF#'refs/tags/'}" >> $GITHUB_ENV
15-
- name: Version-stamp Header file
16-
run: |
17-
echo "// Unmoving $TAG_NAME downloaded from Github at https://github.com/saxbophone/unmoving/releases" > header_stub.hpp
18-
cat header_stub.hpp unmoving/include/unmoving/PSXFixed.hpp > PSXFixed.hpp
1915
- name: Get release
2016
id: get_release
2117
uses: bruceadams/[email protected]
2218
env:
2319
GITHUB_TOKEN: ${{ github.token }}
20+
- name: Version-stamp Header file
21+
env:
22+
RELEASE_URL: ${{ steps.get_release.outputs.html_url }}
23+
run: |
24+
echo "// Unmoving $TAG_NAME downloaded from Github at $RELEASE_URL" > header_stub.hpp
25+
cat header_stub.hpp unmoving/include/unmoving/PSXFixed.hpp > PSXFixed.hpp
2426
- name: Upload Header file
2527
uses: actions/[email protected]
2628
env:

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ else()
99
set(UNMOVING_SUBPROJECT ON)
1010
endif()
1111

12-
project(Unmoving VERSION 0.0.1 LANGUAGES CXX)
12+
project(Unmoving VERSION 0.0.2 LANGUAGES CXX)
1313

1414
find_program(CCACHE_PROGRAM ccache)
1515
if(CCACHE_PROGRAM)

0 commit comments

Comments
 (0)