diff --git a/.github/workflows/dotnet-build.yml b/.github/workflows/dotnet-build.yml index 41fd61d..5221cc0 100644 --- a/.github/workflows/dotnet-build.yml +++ b/.github/workflows/dotnet-build.yml @@ -7,7 +7,7 @@ on: jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest steps: - name: Checkout 🛎 diff --git a/.github/workflows/dotnet-github-release.yml b/.github/workflows/dotnet-github-release.yml index c834460..6a84317 100644 --- a/.github/workflows/dotnet-github-release.yml +++ b/.github/workflows/dotnet-github-release.yml @@ -6,7 +6,7 @@ on: jobs: release: name: Build Release - runs-on: windows-latest + runs-on: ubuntu-latest steps: - name: Checkout 🛎 @@ -21,18 +21,19 @@ jobs: run: dotnet restore - name: Build 🔧 - run: dotnet publish --no-restore -p:PublishProfile=FolderProfile -o .\src\RepoCleaner\bin\publish + run: dotnet publish --no-restore -p:PublishProfile=FolderProfile -o ./src/RepoCleaner/bin/publish - name: Pack 🗜 shell: bash run: | tag=$(git describe --tags --abbrev=0) release_name="ReleaseRepoCleaner-$tag" - 7z a -tzip "${release_name}.zip" ".\src\RepoCleaner\bin\publish\*" + cd ./src/RepoCleaner/bin/publish + zip -r "${release_name}.zip" . -i "./*" - name: Publish 🚚 uses: FelixDamrau/action-gh-release@v1 with: - files: "ReleaseRepoCleaner*" + files: "**/ReleaseRepoCleaner*" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/src/RepoCleaner/Properties/PublishProfiles/FolderProfile.pubxml b/src/RepoCleaner/Properties/PublishProfiles/FolderProfile.pubxml index 7b5f70a..d555e41 100644 --- a/src/RepoCleaner/Properties/PublishProfiles/FolderProfile.pubxml +++ b/src/RepoCleaner/Properties/PublishProfiles/FolderProfile.pubxml @@ -6,7 +6,7 @@ bin\publish\ FileSystem <_TargetId>Folder - net6.0 + net8.0 win-x64 false true