-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from prplecake/c#-rewrite
- Loading branch information
Showing
55 changed files
with
1,785 additions
and
518 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: .NET Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
- name: Restore dependencies | ||
run: | | ||
dotnet nuget add source --username prplecake --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/CompostInTraining/index.json" | ||
dotnet restore | ||
- name: Build | ||
run: dotnet build --no-restore | ||
|
||
- name: Test | ||
run: dotnet test --no-build --verbosity normal --logger "trx" --results-directory "./TestResults" | ||
|
||
- uses: dorny/test-reporter@v1 | ||
if: always() | ||
with: | ||
name: .NET Test Results | ||
path: TestResults/*.trx | ||
reporter: dotnet-trx | ||
|
||
publish: | ||
env: | ||
ZipFile: mastodon-bookmark-sync-${{ github.ref_name }}.zip | ||
strategy: | ||
matrix: | ||
rid: [ linux-x64, win-x64, osx-x64 ] | ||
|
||
runs-on: ubuntu-latest | ||
name: publish-${{matrix.rid}} | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
- name: Add NuGet source | ||
run: dotnet nuget add source --username prplecake --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/CompostInTraining/index.json" | ||
- name: Publish CLI (${{matrix.rid}}) | ||
run: | | ||
dotnet publish BookmarkSync.CLI/BookmarkSync.CLI.csproj -c Release -r ${{matrix.rid}} --self-contained -p:PublishSingleFile=true -p:PublishReadyToRun=true | ||
zip mastodon-bookmark-sync-${{ github.ref_name }}-${{matrix.rid}}.zip BookmarkSync.CLI/bin/Release/net7.0/${{matrix.rid}}/publish/* | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: mastodon-bookmark-sync-*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: .NET | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths-ignore: | ||
- 'README.md' | ||
- '.gitignore' | ||
- 'appsettings.Example.json' | ||
- '.github/**' | ||
- '.idea/**' | ||
pull_request: | ||
branches: [ master ] | ||
paths-ignore: | ||
- 'README.md' | ||
- '.gitignore' | ||
- 'appsettings.Example.json' | ||
- '.github/**' | ||
- '.idea/**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
- name: Restore dependencies | ||
run: | | ||
dotnet nuget add source --username prplecake --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/CompostInTraining/index.json" | ||
dotnet restore | ||
- name: Build | ||
run: dotnet build --no-restore | ||
|
||
- name: Test | ||
run: dotnet test --no-build --verbosity normal --logger "trx" --results-directory "./TestResults" | ||
|
||
- uses: dorny/test-reporter@v1 | ||
if: always() | ||
with: | ||
name: .NET Test Results | ||
path: TestResults/*.trx | ||
reporter: dotnet-trx |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.