Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

fixed syntax in workflow #8

fixed syntax in workflow

fixed syntax in workflow #8

Workflow file for this run

name: Build and Release
on:
push:
branches:
- workflowTest
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up MSVC
uses: microsoft/[email protected]
- name: Build .lib file
run: |
msbuild /p:Configuration=Release /t:RegistryHelper /p:Platform=x64 RegistryHelper.sln
- name: Upload to Release
uses: actions/upload-artifact@v2
with:
name: lib-artifact
path: |
x64/Release/RegistryHelper.lib
x64/Release/RegistryHelper.pdb
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Git
run: git fetch --tags
- name: Get the latest tag
id: get_tag
run: echo "::set-output name=tag::$(git describe --tags --abbrev=0)"
- name: Display release version
run: |
echo "Release version: ${{ steps.get_tag.outputs.tag }}"
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: |
x64/Release/*
data: |
{ "version": "${{ steps.get_tag.outputs.tag }}" }
- name: Comment on Release
run: |
echo "Release version: ${{ steps.create_release.outputs.version }}" > release_message.txt
cat release_message.txt
env:
RELEASE_VERSION: ${{ steps.create_release.outputs.version }}
- name: Comment on Release
run: |
gh release upload ${{ github.repository }} ${{ steps.create_release.outputs.id }} release_message.txt --title "Release Notes"