Skip to content

Fix ci project files #14

Fix ci project files

Fix ci project files #14

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Publish
run: dotnet publish
- name: Get Latest Tag
id: latest_tag
uses: WyriHaximus/github-action-get-previous-tag@v1
- name: Echo latest tag
run: echo '${{ steps.latest_tag.outputs.tag }}'
- name: Release
uses: softprops/action-gh-release@v0.1.14
# if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ steps.latest_tag.outputs.tag }}
files: "MELE-launcher*"
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}