Skip to content

Commit

Permalink
GitHub actions update
Browse files Browse the repository at this point in the history
  • Loading branch information
luizzeroxis committed Nov 27, 2024
1 parent 53dcad7 commit 1c5362f
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 524 deletions.
20 changes: 0 additions & 20 deletions .github/dependabot.yaml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Build master

on:
push:
branches: [ master ]
workflow_dispatch:

jobs:
build_master:
uses: ./.github/workflows/build.yml
with:
debug: true
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build

on:
workflow_call:
inputs:
debug:
description: 'If true, build with Debug configuration, otherwise build with Release configuration'
type: boolean
default: false

env:
CONFIGURATION: ${{ inputs.debug && 'Debug' || 'Release' }}

jobs:
build_gui:
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore -r win-x64
- name: Publish UndertaleModTool
run: dotnet publish UndertaleModTool --no-restore -c ${{ env.CONFIGURATION }} --self-contained true -p:PublishSingleFile=true -p:DebugType=embedded --output ./publish/UndertaleModTool
- name: Publish UndertaleModToolUpdater
run: dotnet publish UndertaleModToolUpdater --no-restore -c ${{ env.CONFIGURATION }} --self-contained true -p:PublishSingleFile=true -p:DebugType=embedded --output ./publish/UndertaleModTool/Updater
- name: Copy external files
run: |
cp ./README.md ./publish/UndertaleModTool
cp ./SCRIPTS.md ./publish/UndertaleModTool
cp ./LICENSE.txt ./publish/UndertaleModTool
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: UndertaleModTool-${{ env.CONFIGURATION }}
path: ./publish/UndertaleModTool
77 changes: 0 additions & 77 deletions .github/workflows/pr_artifacts.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/publish_cli.yml

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/publish_gui.yml

This file was deleted.

Loading

0 comments on commit 1c5362f

Please sign in to comment.