Add GitHub action to publish CPM on release (#102)

* add github action to publish cpm on release

* add checkout step

* update readme
This commit is contained in:
Lars Melchior
2020-03-16 20:37:30 +01:00
committed by GitHub
parent 95c5426d25
commit 90558aa9cb
2 changed files with 22 additions and 1 deletions

21
.github/workflows/publish.yaml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Publish
on:
push:
tags:
- '*'
jobs:
build:
name: Publish CPM.cmake
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Upload CPM.cmake to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: cmake/CPM.cmake
asset_name: CPM.cmake
tag: ${{ github.ref }}
overwrite: true