mirror of
https://github.com/Myxelium/Lunaris2.0.git
synced 2026-04-13 16:10:36 +00:00
Compare commits
4 Commits
default
...
1713128585
| Author | SHA1 | Date | |
|---|---|---|---|
| a650fd431e | |||
| f6a763589e | |||
| b7198bd01e | |||
| f0678a4244 |
14
.github/workflows/dotnet.yml
vendored
14
.github/workflows/dotnet.yml
vendored
@@ -26,17 +26,25 @@ jobs:
|
|||||||
- name: Publish
|
- name: Publish
|
||||||
run: dotnet publish ./Bot/Lunaris2.csproj --configuration Release --output ./out
|
run: dotnet publish ./Bot/Lunaris2.csproj --configuration Release --output ./out
|
||||||
|
|
||||||
|
- name: Zip the build
|
||||||
|
run: 7z a -tzip ./out/Bot.zip ./out/*
|
||||||
|
|
||||||
- name: Get the tag name
|
- name: Get the tag name
|
||||||
id: get_tag
|
id: get_tag
|
||||||
run: echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"
|
run: echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"
|
||||||
|
|
||||||
|
- name: Get the version
|
||||||
|
id: get_version
|
||||||
|
run: echo "::set-output name=version::$(date +%s).${{ github.run_id }}"
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ steps.get_tag.outputs.tag || 'default' }}
|
tag_name: ${{ steps.get_version.outputs.version }}
|
||||||
release_name: Release ${{ github.ref }}
|
release_name: Release v${{ steps.get_version.outputs.version }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
@@ -46,7 +54,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./out/Bot.zip
|
asset_path: ./out/Bot.zip
|
||||||
asset_name: Bot.zip
|
asset_name: Bot.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|||||||
13
Bot/appsettings.json
Normal file
13
Bot/appsettings.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Debug",
|
||||||
|
"System": "Information",
|
||||||
|
"Microsoft": "Information"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Token": "discordToken",
|
||||||
|
"LavaLinkPassword": "youshallnotpass",
|
||||||
|
"LavaLinkHostname": "127.0.0.1",
|
||||||
|
"LavaLinkPort": 2333
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user