Skip to content

Commit

Permalink
Merge pull request #3 from bigbang1112-cz/dev
Browse files Browse the repository at this point in the history
Use GH package
  • Loading branch information
BigBang1112 authored May 7, 2023
2 parents 81991ac + f1e2cae commit c9276ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Add GitHub NuGet source
run: dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/bigbang1112-cz/index.json"
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/publish-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x


- name: Add GitHub NuGet source
run: dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/bigbang1112-cz/index.json"

- name: Restore dependencies
run: dotnet restore

- name: Publish ${{ matrix.os.runtime }}
run: dotnet publish GhostToClipCLI -c Release -f net7.0 -r ${{ matrix.os.runtime }} -o build/GhostToClipCLI-${{ matrix.os.runtime }} -p:PublishSingleFile=true -p:EnableCompressionInSingleFile=true -p:PublishTrimmed=true -p:TrimMode=partial --self-contained

Expand Down

0 comments on commit c9276ad

Please sign in to comment.