Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove MyGet to fix CI error #94

Merged
merged 2 commits into from
Feb 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ env:
RUN_NUMBER: ${{ GITHUB.RUN_NUMBER }}
BUILD_RUN_NUMBER: build.${{ GITHUB.RUN_NUMBER }}
GITHUB_TOKEN: ${{ SECRETS.GITHUB_TOKEN }}
MYGET_API_TOKEN: ${{ SECRETS.MYGET_API_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ SECRETS.COVERALLS_REPO_TOKEN }}

jobs:
Expand Down Expand Up @@ -124,9 +123,3 @@ jobs:
with:
name: "drop-ci-build-packages"
path: './packages'

- name: Add myget nuget source
run: dotnet nuget add source https://www.myget.org/F/casdoor/api/v2/package --name myget.org

- name: Push develop packages to myget.org
run: dotnet nuget push .\packages\*.nupkg -s myget.org -k $env:MYGET_API_TOKEN --skip-duplicate
7 changes: 0 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ env:
RUN_NUMBER: ${{ GITHUB.RUN_NUMBER }}
BUILD_RUN_NUMBER: build.${{ GITHUB.RUN_NUMBER }}
GITHUB_TOKEN: ${{ SECRETS.GITHUB_TOKEN }}
MYGET_API_TOKEN: ${{ SECRETS.MYGET_API_TOKEN }}
NUGET_API_TOKEN: ${{ SECRETS.NUGET_API_KEY }}
COVERALLS_REPO_TOKEN: ${{ SECRETS.COVERALLS_REPO_TOKEN }}

Expand Down Expand Up @@ -117,12 +116,6 @@ jobs:
name: "drop-ci-packages"
path: './packages'

- name: Add myget nuget source
run: dotnet nuget add source https://www.myget.org/F/casdoor/api/v2/package --name myget.org

- name: Push packages to myget.org
run: dotnet nuget push .\packages\*.nupkg -s myget.org -k $env:MYGET_API_TOKEN --skip-duplicate

- name: Add github nuget source
run: dotnet nuget add source https://nuget.pkg.github.com/casdoor/index.json --name github.com --username casdoor --password $env:GITHUB_TOKEN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public ClientTest(ServicesFixture servicesFixture, ServicesFixtureWithoutSecret
public async void TestClient()
{
var tokenClient = _servicesFixture.ServiceProvider.GetService<ICasdoorClient>();
string name = "Token_" + new DateTimeOffset(DateTime.UtcNow).ToUnixTimeMilliseconds().ToString();
string name = "TokenClient_" + new DateTimeOffset(DateTime.UtcNow).ToUnixTimeMilliseconds().ToString();
string code = "Code_" + new DateTimeOffset(DateTime.UtcNow).ToUnixTimeMilliseconds().ToString();
_testOutputHelper.WriteLine($"test with token name {name}");
string owner = "admin";
Expand Down
Loading