Skip to content

Commit

Permalink
Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurochi51 committed Jul 9, 2023
1 parent 160d9bc commit 745e36c
Show file tree
Hide file tree
Showing 48 changed files with 79 additions and 448 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build

on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.x.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
on:
workflow_dispatch:
inputs: {}
push:
tags:
- '*'

name: Release

jobs:
release:
name: Release
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.x.x'

- name: Restore dependencies
run: dotnet restore

- name: Build
run: |
dotnet build -c Release -p:DebugType=embedded
- name: Packing Release
run: |
pushd HexReplacer/bin/Release/net7.0-windows
7z a ../HexReplacer.zip *
popd
shell: bash

- name: Create Release
uses: ncipollo/release-action@v1.12.0
with:
name: HexReplacer ${{ github.ref_name }}
artifacts: "./HexReplacer/bin/Release/*.zip"
tag: ${{ github.ref_name }}
body: "A build of the HexReplacer."
omitBodyDuringUpdate: true
allowUpdates: true
replacesArtifacts: true
token: ${{ secrets.RELEASE }}
Binary file removed .vs/Hex replacer/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file removed .vs/Hex replacer/v17/.futdcache.v2
Binary file not shown.
Binary file removed .vs/Hex replacer/v17/.suo
Binary file not shown.
Binary file modified .vs/ProjectEvaluation/hex replacer.metadata.v7.bin
Binary file not shown.
Binary file modified .vs/ProjectEvaluation/hex replacer.projects.v7.bin
Binary file not shown.
8 changes: 0 additions & 8 deletions Hex replacer/Hex replacer.csproj.user

This file was deleted.

This file was deleted.

25 changes: 0 additions & 25 deletions Hex replacer/obj/Debug/net7.0-windows/Hex replacer.AssemblyInfo.cs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
77 changes: 0 additions & 77 deletions Hex replacer/obj/Debug/net7.0-windows/Window1.g.i.cs

This file was deleted.

Binary file removed Hex replacer/obj/Debug/net7.0-windows/apphost.exe
Binary file not shown.
70 changes: 0 additions & 70 deletions Hex replacer/obj/Hex replacer.csproj.nuget.dgspec.json

This file was deleted.

16 changes: 0 additions & 16 deletions Hex replacer/obj/Hex replacer.csproj.nuget.g.props

This file was deleted.

2 changes: 0 additions & 2 deletions Hex replacer/obj/Hex replacer.csproj.nuget.g.targets

This file was deleted.

Loading

0 comments on commit 745e36c

Please sign in to comment.