Skip to content

separate workflow for pr #14

separate workflow for pr

separate workflow for pr #14

Workflow file for this run

name: NTop CI
# Trigger on every master branch push and pull request
on:
push:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run CMake
run: cmake -DCMAKE_BUILD_TYPE=Release .
- name: Run Build
run: cmake --build . --config Release
- name: Set version
id: set_version
run: echo "VERSION=v0.3.$((${{ github.run_number }} + 4))" >> $GITHUB_ENV
shell: bash
- name: create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION }}
release_name: ${{ env.VERSION }}
body: |
${{ github.event.head_commit.message }}
draft: false
prerelease: false
- name: Upload release asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: .\Release\NTop.exe
asset_name: NTop.exe
asset_content_type: application/vnd.microsoft.portable-executable