update publish script to set CPM.cmake version automatically

This commit is contained in:
Lars Melchior
2020-08-04 12:35:03 +02:00
parent ac872f6908
commit f97a7c61fc
2 changed files with 6 additions and 2 deletions

View File

@@ -11,11 +11,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set CPM version by tag
run: sed "s/CURRENT_CPM_VERSION 0.0.0/CURRENT_CPM_VERSION ${GITHUB_REF/refs\/tags\/v}/g" cmake/CPM.cmake > CPM.cmake
- name: Upload CPM.cmake to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: cmake/CPM.cmake
file: CPM.cmake
asset_name: CPM.cmake
tag: ${{ github.ref }}
overwrite: true