Skip to content

Commit

Permalink
feat: remove MyGet in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Apr 4, 2024
1 parent 76e87bc commit 8e79a1a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
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 @@ -177,9 +176,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/casbin-net/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 @@ -138,12 +137,6 @@ jobs:
name: "drop-ci-packages"
path: './packages'

- name: Add myget nuget source
run: dotnet nuget add source https://www.myget.org/F/casbin-net/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/casbin-net/index.json --name github.com --username casbin-net --password $env:GITHUB_TOKEN

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Casbin.AspNetCore is a [Casbin.NET](https://github.com/casbin/Casbin.NET) integr
This project is on developing, You can install the build version to try it.

```csharp
dotnet add package Casbin.AspNetCore --version <build package version> --source https://www.myget.org/F/casbin-net/api/v3/index.json
dotnet add package Casbin.AspNetCore --version <build package version>
```

Or you create a `NuGet.config` file on you solution directory like this.
Expand All @@ -21,7 +21,6 @@ Or you create a `NuGet.config` file on you solution directory like this.
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="myget.org" value="https://www.myget.org/F/casbin-net/api/v3/index.json" />
</packageSources>
</configuration>
```
Expand Down

0 comments on commit 8e79a1a

Please sign in to comment.