Skip to content

Commit

Permalink
Enable github token
Browse files Browse the repository at this point in the history
  • Loading branch information
IT-VBFK committed Jan 10, 2023
1 parent a9bd639 commit b1fadf1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continous.yml
Expand Up @@ -44,7 +44,7 @@ jobs:
run: ./build.cmd Push SpellCheck
env:
Nugetapikey: ${{ secrets.NUGETAPIKEY }}
GithubToken: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
with:
name: Artifacts
Expand Down
4 changes: 0 additions & 4 deletions .nuke/build.schema.json
Expand Up @@ -10,10 +10,6 @@
"type": "boolean",
"description": "Indicates to continue a previously failed build attempt"
},
"GithubToken": {
"type": "string",
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
},
"Help": {
"type": "boolean",
"description": "Shows the help text for this build assembly"
Expand Down
9 changes: 4 additions & 5 deletions Build/Build.cs
Expand Up @@ -38,10 +38,11 @@
},
ImportSecrets = new[]
{
nameof(Nugetapikey), nameof(GithubToken)
nameof(Nugetapikey)
},
PublishArtifacts = true,
AutoGenerate = true,
EnableGitHubToken = true,
FetchDepth = 0)]
[CustomGitHubActions(
name: "unit-tests",
Expand Down Expand Up @@ -76,14 +77,12 @@ class Build : NukeBuild
string BuildNumber => GitHubActions?.RunNumber.ToString();
string PullRequestBase => GitHubActions?.BaseRef;

string GithubToken => GitHubActions?.Token;

[Parameter("The key to push to Nuget")]
[Secret]
readonly string Nugetapikey;

[Parameter]
[Secret]
readonly string GithubToken;

[Solution(GenerateProjects = true)]
readonly Solution Solution;

Expand Down

0 comments on commit b1fadf1

Please sign in to comment.