Merge branch 'x1y9/master' #16
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: 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 |