Skip to content

Commit 3e95210

Browse files
authored
Merge pull request #85 from d-oit/feature/config-updates
feat(config): update configuration files for production and release workflow
2 parents a79c8c5 + 3fa0ba0 commit 3e95210

23 files changed

+106
-5
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,23 @@ jobs:
5656
run: npm ci
5757

5858
- name: Create release
59+
id: semantic-release
5960
env:
6061
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GIT }}
6162
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6263
run: npx semantic-release
6364

65+
- name: Create GitHub release
66+
if: steps.semantic-release.outputs.nextRelease
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GIT }}
69+
run: |
70+
# Create GitHub release using gh CLI
71+
gh release create ${{ steps.semantic-release.outputs.nextRelease.version }} \
72+
--title "${{ steps.semantic-release.outputs.nextRelease.version }}" \
73+
--notes "${{ steps.semantic-release.outputs.nextRelease.notes }}" \
74+
--generate-notes
75+
6476
- name: Notify success
6577
if: success()
6678
run: echo "🚀 Release completed successfully"

exampleSite/config/_default/hugo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ timeout = "180s"
88
dir = ':cacheDir/images'
99

1010
[module]
11-
replacements = 'github.com/d-oit/mod-slideshow-gallery -> ../..'
11+
replacements = 'github.com/d-oit/hinode-mod-slideshow-gallery -> ../..'
1212
# Build and serve using local mod-template clone declared in the named Hugo workspace:
13-
workspace = "mod-slideshow-gallery.work"
13+
workspace = "hinode-mod-slideshow-gallery.work"
1414
[[module.imports]]
15-
path = "github.com/d-oit/mod-slideshow-gallery"
15+
path = "github.com/d-oit/hinode-mod-slideshow-gallery"
1616
[[module.imports]]
1717
path = "github.com/gethinode/hinode"
1818
[[module.imports]]

exampleSite/go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ go 1.19
55
require (
66
github.com/airbnb/lottie-web v5.13.0+incompatible // indirect
77
github.com/cloudcannon/bookshop/hugo/v3 v3.16.5 // indirect
8+
github.com/d-oit/hinode-mod-slideshow-gallery v1.2.8 // indirect
89
github.com/gethinode/hinode v1.19.6 // indirect
910
github.com/gethinode/mod-bootstrap v1.3.4 // indirect
1011
github.com/gethinode/mod-csp v1.0.8 // indirect

exampleSite/go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ github.com/airbnb/lottie-web v5.13.0+incompatible h1:plBV5Uq/F1kK0EC61Hr0cBGReI9
22
github.com/airbnb/lottie-web v5.13.0+incompatible/go.mod h1:nTss557UK9FGnp8QYlCMO29tjUHwbdAHG/DprbGfHGE=
33
github.com/cloudcannon/bookshop/hugo/v3 v3.16.5 h1:RmqeSUQMPyi31YC6SaFNE2ubfFy13qVj5/lo+MCT+u8=
44
github.com/cloudcannon/bookshop/hugo/v3 v3.16.5/go.mod h1:s7mIonDhtsLcn10ZKuVXyqd6BDHI8vT1WQhZw8rPfY8=
5+
github.com/d-oit/hinode-mod-slideshow-gallery v1.2.8 h1:dm8k0GEIrwpaeQtAU79hvx0SAqYsdzuGDVxpqo31dOw=
6+
github.com/d-oit/hinode-mod-slideshow-gallery v1.2.8/go.mod h1:hVD/EtpvJnaQkyBf60qd2Ey8vzYqHvSaE1EIyFiO/ho=
57
github.com/gethinode/hinode v1.17.6 h1:8xCx009KrGbI0P9dto+xNUqmMS9uN8i5A24+eB9KysU=
68
github.com/gethinode/hinode v1.17.6/go.mod h1:8zqeNxw8i3+qlD/vY3SlPzGMW/RCG/+THKUygHzzZ8M=
79
github.com/gethinode/hinode v1.18.0 h1:9kYhwOohrZIf3RDU77RJr4hT98G7Wi/S3JzyjZhSSeI=
File renamed without changes.
File renamed without changes.

exampleSite/static/img/bird.jpg

287 KB
Loading

exampleSite/static/img/boots.jpg

4.83 MB
Loading

exampleSite/static/img/city.jpg

2.2 MB
Loading

exampleSite/static/img/coffee.jpg

2.1 MB
Loading

0 commit comments

Comments
 (0)