Skip to content

Commit

Permalink
Fix pipeline (#29)
Browse files Browse the repository at this point in the history
* Fix framework in folder profile
* Run pipeline on ubuntu to make local pipeline testing simpler
  • Loading branch information
FelixDamrau authored Apr 28, 2024
1 parent 9294a56 commit 0e7bb72
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
build:

runs-on: windows-latest
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/dotnet-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
release:
name: Build Release
runs-on: windows-latest
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎
Expand All @@ -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 }}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<PublishDir>bin\publish\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<_TargetId>Folder</_TargetId>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>false</SelfContained>
<PublishSingleFile>true</PublishSingleFile>
Expand Down

0 comments on commit 0e7bb72

Please sign in to comment.