diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4915a55..126517a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,11 +56,23 @@ jobs: run: npm ci - name: Create release + id: semantic-release env: GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GIT }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: npx semantic-release + - name: Create GitHub release + if: steps.semantic-release.outputs.nextRelease + env: + GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GIT }} + run: | + # Create GitHub release using gh CLI + gh release create ${{ steps.semantic-release.outputs.nextRelease.version }} \ + --title "${{ steps.semantic-release.outputs.nextRelease.version }}" \ + --notes "${{ steps.semantic-release.outputs.nextRelease.notes }}" \ + --generate-notes + - name: Notify success if: success() run: echo "🚀 Release completed successfully" diff --git a/exampleSite/config/_default/hugo.toml b/exampleSite/config/_default/hugo.toml index c4f95dc..c4c9d88 100644 --- a/exampleSite/config/_default/hugo.toml +++ b/exampleSite/config/_default/hugo.toml @@ -8,11 +8,11 @@ timeout = "180s" dir = ':cacheDir/images' [module] - replacements = 'github.com/d-oit/mod-slideshow-gallery -> ../..' + replacements = 'github.com/d-oit/hinode-mod-slideshow-gallery -> ../..' # Build and serve using local mod-template clone declared in the named Hugo workspace: - workspace = "mod-slideshow-gallery.work" + workspace = "hinode-mod-slideshow-gallery.work" [[module.imports]] - path = "github.com/d-oit/mod-slideshow-gallery" + path = "github.com/d-oit/hinode-mod-slideshow-gallery" [[module.imports]] path = "github.com/gethinode/hinode" [[module.imports]] diff --git a/exampleSite/go.mod b/exampleSite/go.mod index 387e871..7f28c97 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -5,6 +5,7 @@ go 1.19 require ( github.com/airbnb/lottie-web v5.13.0+incompatible // indirect github.com/cloudcannon/bookshop/hugo/v3 v3.16.5 // indirect + github.com/d-oit/hinode-mod-slideshow-gallery v1.2.8 // indirect github.com/gethinode/hinode v1.19.6 // indirect github.com/gethinode/mod-bootstrap v1.3.4 // indirect github.com/gethinode/mod-csp v1.0.8 // indirect diff --git a/exampleSite/go.sum b/exampleSite/go.sum index f92fd7c..48cad9d 100644 --- a/exampleSite/go.sum +++ b/exampleSite/go.sum @@ -2,6 +2,8 @@ github.com/airbnb/lottie-web v5.13.0+incompatible h1:plBV5Uq/F1kK0EC61Hr0cBGReI9 github.com/airbnb/lottie-web v5.13.0+incompatible/go.mod h1:nTss557UK9FGnp8QYlCMO29tjUHwbdAHG/DprbGfHGE= github.com/cloudcannon/bookshop/hugo/v3 v3.16.5 h1:RmqeSUQMPyi31YC6SaFNE2ubfFy13qVj5/lo+MCT+u8= github.com/cloudcannon/bookshop/hugo/v3 v3.16.5/go.mod h1:s7mIonDhtsLcn10ZKuVXyqd6BDHI8vT1WQhZw8rPfY8= +github.com/d-oit/hinode-mod-slideshow-gallery v1.2.8 h1:dm8k0GEIrwpaeQtAU79hvx0SAqYsdzuGDVxpqo31dOw= +github.com/d-oit/hinode-mod-slideshow-gallery v1.2.8/go.mod h1:hVD/EtpvJnaQkyBf60qd2Ey8vzYqHvSaE1EIyFiO/ho= github.com/gethinode/hinode v1.17.6 h1:8xCx009KrGbI0P9dto+xNUqmMS9uN8i5A24+eB9KysU= github.com/gethinode/hinode v1.17.6/go.mod h1:8zqeNxw8i3+qlD/vY3SlPzGMW/RCG/+THKUygHzzZ8M= github.com/gethinode/hinode v1.18.0 h1:9kYhwOohrZIf3RDU77RJr4hT98G7Wi/S3JzyjZhSSeI= diff --git a/exampleSite/mod-slideshow-gallery.work b/exampleSite/hinode-mod-slideshow-gallery.work similarity index 100% rename from exampleSite/mod-slideshow-gallery.work rename to exampleSite/hinode-mod-slideshow-gallery.work diff --git a/exampleSite/mod-slideshow-gallery.work.sum b/exampleSite/hinode-mod-slideshow-gallery.work.sum similarity index 100% rename from exampleSite/mod-slideshow-gallery.work.sum rename to exampleSite/hinode-mod-slideshow-gallery.work.sum diff --git a/exampleSite/static/img/bird.jpg b/exampleSite/static/img/bird.jpg new file mode 100644 index 0000000..37a22dc Binary files /dev/null and b/exampleSite/static/img/bird.jpg differ diff --git a/exampleSite/static/img/boots.jpg b/exampleSite/static/img/boots.jpg new file mode 100644 index 0000000..d434f89 Binary files /dev/null and b/exampleSite/static/img/boots.jpg differ diff --git a/exampleSite/static/img/city.jpg b/exampleSite/static/img/city.jpg new file mode 100644 index 0000000..44d640d Binary files /dev/null and b/exampleSite/static/img/city.jpg differ diff --git a/exampleSite/static/img/coffee.jpg b/exampleSite/static/img/coffee.jpg new file mode 100644 index 0000000..3182c8e Binary files /dev/null and b/exampleSite/static/img/coffee.jpg differ diff --git a/exampleSite/static/img/creator-1x1.jpg b/exampleSite/static/img/creator-1x1.jpg new file mode 100644 index 0000000..90846f6 Binary files /dev/null and b/exampleSite/static/img/creator-1x1.jpg differ diff --git a/exampleSite/static/img/dunes.jpg b/exampleSite/static/img/dunes.jpg new file mode 100644 index 0000000..d589514 Binary files /dev/null and b/exampleSite/static/img/dunes.jpg differ diff --git a/exampleSite/static/img/favicon.png b/exampleSite/static/img/favicon.png new file mode 100644 index 0000000..197ab3c Binary files /dev/null and b/exampleSite/static/img/favicon.png differ diff --git a/exampleSite/static/img/favicon.svg b/exampleSite/static/img/favicon.svg new file mode 100644 index 0000000..0bf34c8 --- /dev/null +++ b/exampleSite/static/img/favicon.svg @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + diff --git a/exampleSite/static/img/flowers.jpg b/exampleSite/static/img/flowers.jpg new file mode 100644 index 0000000..b360221 Binary files /dev/null and b/exampleSite/static/img/flowers.jpg differ diff --git a/exampleSite/static/img/laptop.jpg b/exampleSite/static/img/laptop.jpg new file mode 100644 index 0000000..3645569 Binary files /dev/null and b/exampleSite/static/img/laptop.jpg differ diff --git a/exampleSite/static/img/notepad.jpg b/exampleSite/static/img/notepad.jpg new file mode 100644 index 0000000..0c58b24 Binary files /dev/null and b/exampleSite/static/img/notepad.jpg differ diff --git a/exampleSite/static/img/paper.jpg b/exampleSite/static/img/paper.jpg new file mode 100644 index 0000000..4d1bd5b Binary files /dev/null and b/exampleSite/static/img/paper.jpg differ diff --git a/exampleSite/static/img/phone.jpg b/exampleSite/static/img/phone.jpg new file mode 100644 index 0000000..a8c9e4e Binary files /dev/null and b/exampleSite/static/img/phone.jpg differ diff --git a/exampleSite/static/img/puzzle.jpg b/exampleSite/static/img/puzzle.jpg new file mode 100644 index 0000000..4371102 Binary files /dev/null and b/exampleSite/static/img/puzzle.jpg differ diff --git a/exampleSite/static/img/sketch.jpg b/exampleSite/static/img/sketch.jpg new file mode 100644 index 0000000..26d5272 Binary files /dev/null and b/exampleSite/static/img/sketch.jpg differ diff --git a/exampleSite/static/img/sunrise.jpg b/exampleSite/static/img/sunrise.jpg new file mode 100644 index 0000000..76e7b10 Binary files /dev/null and b/exampleSite/static/img/sunrise.jpg differ diff --git a/package.json b/package.json index 8afcb04..ce2abd8 100644 --- a/package.json +++ b/package.json @@ -62,9 +62,8 @@ "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", - "@semantic-release/github", - "@semantic-release/npm", "@semantic-release/changelog", + "@semantic-release/npm", [ "@semantic-release/exec", {