Release #6
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: Release | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build: | |
name: Create Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: | | |
bash install_dependencies.sh | |
pip3 install -r requirements.txt | |
- name: Build | |
id: build | |
run: make all | |
- name: Set Tag | |
id: set_tag | |
run: | | |
if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then | |
echo "::set-output name=tag::${{ github.ref }}" | |
else | |
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`) | |
echo "::set-output name=tag::${LATEST_TAG}" | |
fi | |
- name: Create Release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "cns.grf" | |
tag: ${{ steps.set_tag.outputs.tag }} |