Dec 09, 2024: hasCanDimer and filterBlocks #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: Create Release | |
on: | |
push: | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
jobs: | |
create_release: | |
name: Create Release | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: teloscope ${{ github.ref }} | |
body: | | |
Changes in this Release | |
draft: false | |
prerelease: false | |
outputs: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
add_resources: | |
needs: create_release | |
name: Add Resources | |
strategy: | |
matrix: | |
OS: [macos-latest, ubuntu-latest, windows-2019] | |
include: | |
- OS: macos-latest | |
OS_NAME: macOS | |
- OS: ubuntu-latest | |
OS_NAME: linux | |
- OS: windows-2019 | |
OS_NAME: win | |
runs-on: ${{ matrix.OS }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Build | |
run: make | |
- name: Zip | |
uses: papeloto/action-zip@v1 | |
with: | |
files: build/bin/teloscope | |
dest: result.zip | |
- name: Add binaries | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ needs.create_release.outputs.upload_url }} | |
asset_path: result.zip | |
asset_name: teloscope.${{ github.ref_name }}-${{matrix.OS_NAME}}.zip | |
asset_content_type: application/zip | |
add_submodules: | |
needs: create_release | |
name: Source with submodules | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Zip | |
uses: papeloto/action-zip@v1 | |
with: | |
files: . | |
dest: result.zip | |
- name: Add files | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ needs.create_release.outputs.upload_url }} | |
asset_path: result.zip | |
asset_name: teloscope.${{ github.ref_name }}-with_submodules.zip | |
asset_content_type: application/zip |