mirror of
https://github.com/Myxelium/Lunaris2.0.git
synced 2026-04-13 08:00:37 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b79e56d3a1 | |||
| fa19f8d938 | |||
| ac869c43da | |||
| e2fdd9a2d7 | |||
| 98761fc91d |
36
.github/workflows/dotnet.yml
vendored
36
.github/workflows/dotnet.yml
vendored
@@ -15,23 +15,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0 # required for github-action-get-previous-tag
|
fetch-depth: 0 # required for github-action-get-previous-tag
|
||||||
|
|
||||||
- name: Setup .NET
|
|
||||||
uses: actions/setup-dotnet@v1
|
|
||||||
with:
|
|
||||||
dotnet-version: '8.0.x'
|
|
||||||
|
|
||||||
- name: Restore dependencies
|
|
||||||
run: dotnet restore ./Bot/Lunaris2.csproj
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: dotnet build ./Bot/Lunaris2.csproj --no-restore -c Release -o ./out
|
|
||||||
|
|
||||||
- name: Publish
|
|
||||||
run: dotnet publish ./Bot/Lunaris2.csproj --configuration Release --output ./out
|
|
||||||
|
|
||||||
- name: Zip the build
|
|
||||||
run: 7z a -tzip ./out/Lunaris.zip ./out/*
|
|
||||||
|
|
||||||
- name: Get previous tag
|
- name: Get previous tag
|
||||||
id: previoustag
|
id: previoustag
|
||||||
uses: 'WyriHaximus/github-action-get-previous-tag@v1'
|
uses: 'WyriHaximus/github-action-get-previous-tag@v1'
|
||||||
@@ -44,6 +27,23 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: ${{ steps.previoustag.outputs.tag }}
|
version: ${{ steps.previoustag.outputs.tag }}
|
||||||
|
|
||||||
|
- name: Setup .NET
|
||||||
|
uses: actions/setup-dotnet@v1
|
||||||
|
with:
|
||||||
|
dotnet-version: '8.0.x'
|
||||||
|
|
||||||
|
- name: Restore dependencies
|
||||||
|
run: dotnet restore ./Bot/Lunaris2.csproj
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: dotnet build ./Bot/Lunaris2.csproj --no-restore -c Release /p:AssemblyVersion=${{ steps.previoustag.outputs.tag }} -o ./out
|
||||||
|
|
||||||
|
- name: Publish
|
||||||
|
run: dotnet publish ./Bot/Lunaris2.csproj --configuration Release --output ./out
|
||||||
|
|
||||||
|
- name: Zip the build
|
||||||
|
run: 7z a -tzip ./out/Lunaris.zip ./out/*
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
@@ -63,5 +63,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./out/Lunaris.zip
|
asset_path: ./out/Lunaris.zip
|
||||||
asset_name: Lunaris.zip
|
asset_name: Lunaris_${{steps.semver.outputs.patch}}.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|||||||
Reference in New Issue
Block a user