Skip to content

Commit

Permalink
refactor: retire gui
Browse files Browse the repository at this point in the history
  • Loading branch information
Crauzer committed Dec 1, 2024
1 parent 2dcf499 commit c8224ea
Show file tree
Hide file tree
Showing 65 changed files with 273 additions and 3,566 deletions.
6 changes: 0 additions & 6 deletions .csharpierrc.json

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/build.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/ci.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Create Tag

on:
workflow_dispatch: # Allows manual triggering

jobs:
create-tag:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all tags and branches

- name: Create Tag
id: create_tag
run: echo "TAG_NAME=$(pwsh ./scripts/Create-Tag.ps1)" >> $GITHUB_OUTPUT

- name: Push Tag
run: |
git config user.name github-actions
git config user.email [email protected]
git push origin ${{ steps.create_tag.outputs.TAG_NAME }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Trigger Build and Release Workflow
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: new-tag-created
client-payload: '{"tag": "${{ steps.create_tag.outputs.tag_name }}"}'
71 changes: 71 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Build and Release

on:
repository_dispatch:
types: [new-tag-created]

env:
PROJECT_NAME: lol2gltf
DOTNET_VERSION: "8.0.x"

jobs:
build-and-release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Cache NuGet packages
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore dependencies
working-directory: src
run: |
dotnet restore
- name: Build
working-directory: src
run: |
dotnet build -c Release -f net8.0 --no-restore
- name: Publish
working-directory: src
run: |
dotnet publish -c Release -f net8.0 -r win-x64 --self-contained true --no-restore
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.PROJECT_NAME }}-${{ github.event.client_payload.tag }}.exe
path: ./src/bin/x64/Release/net8.0/win-x64/publish/${{ env.PROJECT_NAME }}.exe

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.client_payload.tag }}
release_name: Release ${{ github.event.client_payload.tag }}
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./src/bin/x64/Release/net8.0/win-x64/publish/${{ env.PROJECT_NAME }}.exe
asset_name: ${{ env.PROJECT_NAME }}-${{ github.event.client_payload.tag }}.exe
asset_content_type: application/octet-stream
114 changes: 0 additions & 114 deletions .nuke/build.schema.json

This file was deleted.

4 changes: 0 additions & 4 deletions .nuke/parameters.json

This file was deleted.

39 changes: 0 additions & 39 deletions Photino.Blazor/Photino - Backup.Blazor.csproj

This file was deleted.

Loading

0 comments on commit c8224ea

Please sign in to comment.