Skip to content

Commit

Permalink
Use default GITHUB_TOKEN in the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Feb 25, 2022
1 parent 7f12a5b commit 5111ef5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
- name: Self Build - Publish (main only)
if: github.event_name == 'push'
run: |
./src/dotnet-releaser/bin/Debug/net6.0/dotnet-releaser run --nuget-token ${{secrets.NUGET_TOKEN}} --github-token ${{secrets.TOKEN_GITHUB}} src/dotnet-releaser.toml
./src/dotnet-releaser/bin/Debug/net6.0/dotnet-releaser run --nuget-token ${{secrets.NUGET_TOKEN}} --github-token ${{secrets.GITHUB_TOKEN}} src/dotnet-releaser.toml
4 changes: 2 additions & 2 deletions doc/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ In order to use `dotnet-releaser` on your GitHub CI, you need:
```
3. To run the dotnet-releaser command assuming that you have added all the secret tokens to your GitHub repository
```sh
dotnet-releaser run --nuget-token ${{secrets.NUGET_TOKEN}} --github-token ${{secrets.TOKEN_GITHUB}} src/dotnet-releaser.toml
dotnet-releaser run --nuget-token ${{secrets.NUGET_TOKEN}} --github-token ${{secrets.GITHUB_TOKEN}} src/dotnet-releaser.toml
```
Depending on the kind of GitHub event, the run command will automatically:
Expand All @@ -175,7 +175,7 @@ An example of a setup with GitHub Actions:
- name: Build, Tests, Cover, Pack and Publish (on push tag)
run: |
dotnet tool install --global dotnet-releaser --version "0.2.*"
dotnet-releaser run --nuget-token ${{secrets.NUGET_TOKEN}} --github-token ${{secrets.TOKEN_GITHUB}} src/dotnet-releaser.toml
dotnet-releaser run --nuget-token ${{secrets.NUGET_TOKEN}} --github-token ${{secrets.GITHUB_TOKEN}} src/dotnet-releaser.toml
```
> `dotnet-releaser` is currently not available as a GitHub Action, as it requires anyway `dotnet` to be installed (in order to compile the projects). As you can see, the integration is very straightforward with .NET global tools.
Expand Down

0 comments on commit 5111ef5

Please sign in to comment.