Files
se-launcher/.github/workflows/build.yml
2022-11-26 01:05:41 +07:00

37 lines
1.1 KiB
YAML

name: Build
on:
push:
branches: [master]
jobs:
build:
name: Build Launcher
runs-on: windows-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
name: Add nuget source
- run: dotnet restore CringeLauncher/CringeLauncher.csproj --locked-mode
name: Restore Project
- run: dotnet publish -c Release -o ./pub CringeLauncher/CringeLauncher.csproj --no-restore /p:PackageVersion="${{ steps.version.outputs.version }}" /p:AssemblyVersion="${{ steps.version.outputs.version }}"
id: publish
name: Build Project
- run: 7z a ../pub.zip ./
working-directory: ./pub
name: Zip Results
- uses: actions/upload-artifact@v3
with:
name: launcher
path: pub.zip