mirror of
https://github.com/lantean-code/qbtmud.git
synced 2025-10-23 04:52:22 +00:00
Update dotnet.yml
This commit is contained in:
17
.github/workflows/dotnet.yml
vendored
17
.github/workflows/dotnet.yml
vendored
@@ -22,13 +22,8 @@ jobs:
|
||||
dotnet-version: '8.0.x'
|
||||
|
||||
- name: Install GitVersion
|
||||
uses: gittools/actions/gitversion/setup@v0.9.14
|
||||
with:
|
||||
versionSpec: '5.x'
|
||||
|
||||
- name: Determine Version
|
||||
uses: gittools/actions/gitversion/execute@v0.9.14
|
||||
id: gitversion
|
||||
run: echo "Version: ${{ steps.gitversion.outputs.FullSemVer }}"
|
||||
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
@@ -48,15 +43,15 @@ jobs:
|
||||
run: |
|
||||
cd output
|
||||
mv wwwroot public
|
||||
zip -r "../qbt-mud-v${{ steps.gitversion.outputs.FullSemVer }}.zip" public
|
||||
zip -r "../qbt-mud-v${{ steps.gitversion.outputs.SemVer }}.zip" public
|
||||
shell: bash
|
||||
|
||||
- name: Create GitHub Release
|
||||
if: github.ref == 'refs/heads/master'
|
||||
uses: actions/create-release@v1
|
||||
with:
|
||||
tag_name: v${{ steps.gitversion.outputs.FullSemVer }}
|
||||
release_name: Release v${{ steps.gitversion.outputs.FullSemVer }}
|
||||
tag_name: v${{ steps.gitversion.outputs.SemVer }}
|
||||
release_name: Release v${{ steps.gitversion.outputs.SemVer }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
generate_release_notes: true
|
||||
@@ -68,8 +63,8 @@ jobs:
|
||||
uses: actions/upload-release-asset@v1
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: qbt-mud-v${{ steps.gitversion.outputs.FullSemVer }}.zip
|
||||
asset_name: qbt-mud-v${{ steps.gitversion.outputs.FullSemVer }}.zip
|
||||
asset_path: qbt-mud-v${{ steps.gitversion.outputs.SemVer }}.zip
|
||||
asset_name: qbt-mud-v${{ steps.gitversion.outputs.SemVer }}.zip
|
||||
asset_content_type: application/zip
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Reference in New Issue
Block a user