1
0
This repository has been archived on 2026-04-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
xfox111 ff93ebc564 Update mock-mobile.yaml
Added release tag prefix to exclude disambiguation with other tools
2022-04-22 15:56:09 +03:00

46 lines
1.1 KiB
YAML

name: MockMobile
on:
push:
branches: [ master ]
paths:
- "MockMobile/*"
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies
working-directory: "MockMobile"
run: dotnet restore
- name: Build
working-directory: "MockMobile"
run: dotnet build --no-restore
- name: Publish
working-directory: "MockMobile"
run: dotnet publish -p:PublishSingleFile=true -r win-x64 -c Debug --self-contained true
- name: Publish artifacts
uses: actions/upload-artifact@v3
with:
name: "MockMobile"
path: "MockMobile/bin/Debug/net6.0/win-x64/publish/"
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
tag: MockMobile-${{ github.run_id }}/${{ github.run_number }}
artifacts: "MockMobile/bin/Debug/net6.0/win-x64/publish/MockMobile.exe,MockMobile/bin/Debug/net6.0/win-x64/publish/MockMobile.pdb"
token: ${{ secrets.GH_TOKEN }}