Skip to content

Commit

Permalink
Fixing Release bug with multiple artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
safaci2000 committed Feb 12, 2024
1 parent dd47520 commit 12ec776
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 16 deletions.
47 changes: 36 additions & 11 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,41 @@
name: Publish Hugo Documentation On New Tag
#name: Publish Hugo Documentation On New Tag
#on:
# push:
## branches:
## - master
# tags:
# - v*
#
#jobs:
# deployHugoPages:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
# fetch-depth: 0
# - name: Setup Hugo
# uses: peaceiris/actions-hugo@v2
# with:
# hugo-version: 'latest'
# extended: true
# - name: NPM Dependencies
# run: |
# cd website && npm install
# - name: NPM Dependencies
# run: npm install postcss postcss-cli autoprefixer
# - name: Build
# run: |
# cd website && npm run build
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./website/public
---
name: Verify Hugo Documentation
on:
push:
# branches:
# - master
tags:
- v*

jobs:
deployHugoPages:
Expand All @@ -27,9 +58,3 @@ jobs:
- name: Build
run: |
cd website && npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/public

18 changes: 16 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...

source:
rlcp: true


builds:
- id: gdg
env:
Expand All @@ -21,6 +20,10 @@ builds:
- linux
- windows
- darwin
goarch:
- arm64
- 386
- amd64
- id: gdg-generate
env:
- CGO_ENABLED=0
Expand All @@ -31,6 +34,10 @@ builds:
- linux
- windows
- darwin
goarch:
- arm64
- 386
- amd64

nfpms:
- id: gdg
Expand Down Expand Up @@ -74,6 +81,7 @@ nfpms:

universal_binaries:
- replace: true
ids: [ gdg gdg-generate ]

release:
prerelease: auto
Expand Down Expand Up @@ -117,6 +125,12 @@ archives:
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
builds:
- gdg
- gdg-generate
files:
- README*
- config/importer-example.yml
Expand Down
5 changes: 3 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@ tasks:
- goreleaser build --snapshot
release:
deps: [clean]
desc: "Release GDG"
desc: "TEST Release of GDG, no validation, no publish"
cmds:
- goreleaser release
- goreleaser release --skip=publish,validate

test:
desc: "test check"
cmds:
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@
"stylelint-config-standard-scss": "^4.0"
},
"otherDependencies": {
"hugo": "0.107.0"
"hugo": "0.121.1"
}
}

0 comments on commit 12ec776

Please sign in to comment.