Update publish script to set CPM.cmake version automatically (#139)

* update publish script to set CPM.cmake version automatically

* set a minimum development version to avoid deprecated error handler call
This commit is contained in:
Lars Melchior
2020-08-04 13:12:35 +02:00
committed by GitHub
parent ac872f6908
commit 25603ac4ad
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/0.27.2-development-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