Daniel olson patch 1 (#65) #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Release | |
on: | |
push: | |
tags: | |
- 'v*.*.*' # Trigger only on version tags | |
pull_request: | |
tags: | |
- 'v*.*.*' # Trigger only on version tags | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Configure CMake | |
run: cmake -S . -B build | |
- name: Build with CMake | |
run: cmake --build build --config Release | |
- name: Create zip archive of binaries | |
run: | | |
mkdir build_output | |
cp build/ultra build_output/ | |
zip -r binaries_${{ github.ref_name }}.zip build_output/ | |
shell: bash | |
- name: Upload binaries to GitHub Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: binaries_${{ github.ref_name }}.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |