Skip to content

Release

Release #6

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 }}