Skip to content

Commit 6de0a54

Browse files
authored
Merge pull request #353 from per1234/set-go-version
Use project Go version for generating website content
2 parents ac9f2e7 + 32f9119 commit 6de0a54

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

workflow-templates/deploy-cobra-mkdocs-versioned-poetry.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ See the ["Deploy Website" workflow (versioned, MkDocs, Poetry) documentation](de
3636

3737
### Configuration
3838

39+
#### Workflow
40+
41+
Configure the version of Go used for development of the project in the `env.GO_VERSION` field of `deploy-cobra-mkdocs-versioned-poetry.yml`.
42+
3943
#### Taskfile
4044

4145
Set the `PROJECT_NAME` variable to the project name.

workflow-templates/deploy-cobra-mkdocs-versioned-poetry.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
name: Deploy Website
33

44
env:
5+
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
6+
GO_VERSION: "1.17"
57
# See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
68
PYTHON_VERSION: "3.9"
79

@@ -59,6 +61,11 @@ jobs:
5961
- name: Checkout repository
6062
uses: actions/checkout@v3
6163

64+
- name: Install Go
65+
uses: actions/setup-go@v4
66+
with:
67+
go-version: ${{ env.GO_VERSION }}
68+
6269
- name: Install Python
6370
uses: actions/setup-python@v4
6471
with:

0 commit comments

Comments
 (0)