Skip to content

Commit

Permalink
Add project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
JuniorDark committed May 25, 2023
1 parent 48e8614 commit ee3e927
Show file tree
Hide file tree
Showing 85 changed files with 12,061 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: [JuniorDark]
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# yaml-language-server: $schema=https://json.schemastore.org/dependabot-2.0.json
version: 2
updates:
- directory: /
package-ecosystem: github-actions
schedule:
interval: weekly
labels: []
- directory: /
package-ecosystem: nuget
schedule:
interval: weekly
labels: []
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build
on:
push:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Buildv
run: dotnet publish --configuration Release --self-contained false --runtime win-x86 /p:PublishSingleFile=true
- name: Zip output file
run: Compress-Archive -Path "./bin/Release/net7.0-windows/win-x86/publish/RH Server Manager.exe" -DestinationPath RH_Server_Manager.zip

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: RH Server Manager
path: RH_Server_Manager.zip
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release
on:
workflow_dispatch:
release:
types: [created]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
- name: Get version from .csproj file
id: version

run: |
echo "::set-output name=version::$(grep -m1 -o '<FileVersion>[^<]*' RHServerManager.csproj | sed 's/<FileVersion>//')"
- name: Build
run: dotnet publish --configuration Release --self-contained false --runtime win-x86 /p:PublishSingleFile=true
- name: Zip output file
run: Compress-Archive -Path "./bin/Release/net7.0-windows/win-x86/publish/RH Server Manager.exe" -DestinationPath RH_Server_Manager.zip
- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ steps.version.outputs.version }}
release_name: v${{ steps.version.outputs.version }}
body: Automated release created by GitHub Actions.
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./RH_Server_Manager.zip
asset_name: RH_Server_Manager.zip
asset_content_type: application/zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit ee3e927

Please sign in to comment.