File tree 3 files changed +21
-9
lines changed
docs/articles/getting-started
3 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,9 @@ following [project template](https://github.com/pleonex/template-csharp).
87
87
1 . Select GitHub Actions as the source.
88
88
2 . From _ Environments_ , select ` github-pages ` . Under _ Deployment branches and
89
89
tags_ add a new rule to allow publishing docs from the tags ` v* ` .
90
+ 3 . Enable write permissions to publish GitHub Pages. From Actions, "General",
91
+ go to "Workflow permissions" and ensure it's set to "Read and write
92
+ permissions".
90
93
91
94
## Collaboration files
92
95
@@ -99,7 +102,9 @@ following [project template](https://github.com/pleonex/template-csharp).
99
102
explain how to create issues and pull requests.
100
103
2 . ` CODE_OF_CONDUCT.md ` : GitHub can help to create it.
101
104
3 . Create IDE support files:
102
- 1 . [ ` .editorconfig ` ] ( https://github.com/pleonex/template-csharp/blob/main/.editorconfig ) :
105
+ 1 . [ ` .editorconfig ` ] ( https://github.com/pleonex/template-csharp/blob/main/.editorconfig )
106
+ and
107
+ [ ` .prettierrc.yaml ` ] ( https://github.com/pleonex/template-csharp/blob/main/.prettierrc.yaml ) :
103
108
code styles and code warnings.
104
109
2 . [ ` .vscode/ ` ] ( https://github.com/pleonex/template-csharp/tree/main/.vscode ) :
105
110
VS Code support to build, run and debug the project.
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ structure. Then follow this checklist to adapt the template to your project.
13
13
14
14
1 . Rename, edit, remove the project folders inside ` src/ ` and the solution file.
15
15
2 . Edit the project name and URL in ` src/Directory.Build.props `
16
- 3 . Add, remove, update dependencies in ` src/Directory.Build.targets `
16
+ 3 . Add, remove, update dependencies in ` src/Directory.Packages.props `
17
17
4 . Update the ` .csproj ` files with the correct dependencies.
18
18
5 . Update ` build/orchestrator/Program.cs ` with the list of publishable .NET
19
19
projects in ` ApplicationProjects ` .
@@ -37,7 +37,9 @@ structure. Then follow this checklist to adapt the template to your project.
37
37
` nuget_preview_token ` or ` azure_nuget_token `
38
38
3 . Review ` build.yml ` to remove / add OS platforms to run build and tests.
39
39
4 . Enable GitHub Pages in the repository settings
40
- 1 . Select GitHub Actions as the source.
40
+ 1 . Pages -> Select GitHub Actions as the source.
41
+ 2 . Environments -> github-pages -> Add new rule for tags ` v* `
42
+ 3 . Actions -> General -> Workflow permissions -> Read and write permissions
41
43
42
44
## Collaboration files
43
45
Original file line number Diff line number Diff line change @@ -62,9 +62,14 @@ In order to run this workflow you will need to configure a couple of things:
62
62
and pass it to ` azure_nuget_token ` input. Define also ` azure_nuget_feed ` .
63
63
- ** Enable GitHub pages** : if you want to publish your documentation via GitHub
64
64
pages, you need to enable in your project settings:
65
- 1 . Go to _ Settings_ > _ Pages_
66
- 2 . In _ Source_ select _ GitHub Actions_
67
- 3 . Optionally set a domain and enforce HTTPS.
68
- 4 . Go to _ Environments_ and select ` github-pages `
69
- 5 . Under _ Deployment branches and tags_ add a new rule to allow publishing
70
- docs from the tags ` v* ` .
65
+ - Enable publishing from a GitHub Action:
66
+ 1 . Go to _ Settings_ > _ Pages_
67
+ 2 . In _ Source_ select _ GitHub Actions_
68
+ 3 . Optionally set a domain and enforce HTTPS.
69
+ - Allow to publish documentation from a tag (release builds):
70
+ 1 . Go to _ Environments_ and select ` github-pages `
71
+ 2 . Under _ Deployment branches and tags_ add a new rule to allow publishing
72
+ docs from the tags ` v* ` .
73
+ - Give write permissions to ` GITHUB_TOKEN ` :
74
+ 1 . Go to _ Actions_ > _ General_
75
+ 2 . Under _ Workflow permissions_ select _ Read and write permissions_ .
You can’t perform that action at this time.
0 commit comments