Skip to content

Commit

Permalink
Fix gorelease and deploy docs workflow (kube-burner#370)
Browse files Browse the repository at this point in the history
* Update goreleaser

Signed-off-by: Raul Sevilla <[email protected]>

* Fix doc deployment workflow

Signed-off-by: Raul Sevilla <[email protected]>

---------

Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 authored Jul 4, 2023
1 parent fddf590 commit 910b286
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ jobs:
with:
python-version: 3.x

- name: Export tag version
run: |
export RELEASE_TAG_VERSION=${{ github.event.release.tag_name }}
echo "RELEASE_TAG_VERSION=${RELEASE_TAG_VERSION}" >> $GITHUB_ENV
- name: Setup doc deploy
run: |
git config --global user.name Docs deploy
Expand All @@ -28,8 +23,8 @@ jobs:
- name: Install dependencies
run: pip install mkdocs-material mkdocs-include-markdown-plugin mike

- name: deploy docs
run: mike deploy --push -m "Update docs to version ${RELEASE_TAG_VERSION}" --update-aliases ${RELEASE_TAG_VERSION} latest
- name: Deploy docs
run: mike deploy --push -m "Update docs to version ${{ github.ref_name }}" --update-aliases ${{ github.ref_name }} latest

- name: Set latest as default doc branch
run: mike set-default --push latest
3 changes: 2 additions & 1 deletion .github/workflows/gorelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@master
with:
args: release --rm-dist
version: 1.19.0
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 8 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ builds:
ldflags:
- -X github.com/cloud-bulldozer/kube-burner/pkg/version.GitCommit={{.Commit}} -X github.com/cloud-bulldozer/kube-burner/pkg/version.BuildDate={{.Date}} -X github.com/cloud-bulldozer/kube-burner/pkg/version.Version={{.Version}}
archives:
- name_template: "kube-burner-{{.Version}}-{{.Os}}-{{.Arch}}"
format: tar.gz
- format: tar.gz
name_template: >-
{{ .ProjectName }}-
{{- title .Tag }}-
{{- .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
files:
- LICENSE
changelog:
Expand Down

0 comments on commit 910b286

Please sign in to comment.