From 18b655ad3d47e5d1299c61e12b577e343a8f82eb Mon Sep 17 00:00:00 2001 From: Joshua Saxby Date: Wed, 22 Sep 2021 11:18:01 +0100 Subject: [PATCH] Initial build-release test successful. Let's include the release's exact URL too --- .github/workflows/build-release.yml | 10 ++++++---- CMakeLists.txt | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 96c0300..0fb2503 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -12,15 +12,17 @@ jobs: - name: Set Tag Name # trim prefix from ref to get tag name run: echo "TAG_NAME=${GITHUB_REF#'refs/tags/'}" >> $GITHUB_ENV - - name: Version-stamp Header file - run: | - echo "// Unmoving $TAG_NAME downloaded from Github at https://github.com/saxbophone/unmoving/releases" > header_stub.hpp - cat header_stub.hpp unmoving/include/unmoving/PSXFixed.hpp > PSXFixed.hpp - name: Get release id: get_release uses: bruceadams/get-release@v1.2.3 env: GITHUB_TOKEN: ${{ github.token }} + - name: Version-stamp Header file + env: + RELEASE_URL: ${{ steps.get_release.outputs.html_url }} + run: | + echo "// Unmoving $TAG_NAME downloaded from Github at $RELEASE_URL" > header_stub.hpp + cat header_stub.hpp unmoving/include/unmoving/PSXFixed.hpp > PSXFixed.hpp - name: Upload Header file uses: actions/upload-release-asset@v1.0.2 env: diff --git a/CMakeLists.txt b/CMakeLists.txt index 88dfe81..4aea178 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ else() set(UNMOVING_SUBPROJECT ON) endif() -project(Unmoving VERSION 0.0.1 LANGUAGES CXX) +project(Unmoving VERSION 0.0.2 LANGUAGES CXX) find_program(CCACHE_PROGRAM ccache) if(CCACHE_PROGRAM)