pve
This commit is contained in:
65
.github/workflows/build.yml
vendored
Normal file
65
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
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'
|
||||
|
||||
- uses: montudor/action-zip@v1
|
||||
|
||||
- name: run minver
|
||||
id: version
|
||||
uses: thefringeninja/action-minver@2.0.0-preview1
|
||||
with:
|
||||
auto-increment: patch
|
||||
build-metadata: ${{ github.sha }}
|
||||
default-pre-release-phase: preview
|
||||
minimum-major-minor: 0.0.1
|
||||
tag-prefix: v
|
||||
|
||||
- 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
|
||||
|
||||
- run: dotnet restore CringeLauncher/CringeLauncher.csproj --locked-mode
|
||||
|
||||
- run: dotnet publish -c Release -o ./pub CringeLauncher/CringeLauncher.csproj --no-restore /p:PackageVersion="${{ steps.version.outputs.version }}" /p:AssemblyVersion="${{ steps.version.outputs.version }}"
|
||||
|
||||
- run: 7z a ../pub.zip ./
|
||||
working-directory: ./pub
|
||||
|
||||
- name: Create Draft Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: v${{ steps.version.outputs.version }}
|
||||
release_name: Launcher v${{ steps.version.outputs.version }}
|
||||
draft: true
|
||||
prerelease: false
|
||||
|
||||
- uses: actions/upload-release-asset@v1.0.1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./pub.zip
|
||||
asset_name: launcher.zip
|
||||
asset_content_type: application/zip
|
||||
|
||||
- uses: eregon/publish-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
release_id: ${{ steps.create_release.outputs.id }}
|
Reference in New Issue
Block a user