Skip to content

Commit

Permalink
Merge pull request #183 from zetxek/180-update-release-bundle-depende…
Browse files Browse the repository at this point in the history
…ncies

Updating release process
  • Loading branch information
zetxek authored Jan 31, 2025
2 parents b499db6 + 70c4e71 commit 064fdd6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,29 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4

- name: Set up Node.js
uses: actions/setup-node@v4

- name: Install Go dependencies
run: go mod download

- name: Install NPM dependencies
run: npm ci

- name: Get version
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT

- name: Create ZIP archive
run: zip -r "adritian-free-hugo-theme-${{ steps.get_version.outputs.VERSION }}.zip" . -x "*.git*"

- name: Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: "adritian-free-hugo-theme-${{ steps.get_version.outputs.VERSION }}.zip"

8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ You have two reference implementations of the theme provided:

#### Install Hugo

To use `adritian-free-hugo-theme` you need to install Hugo by following https://gohugo.io/getting-started/installing/.
This is a theme for the website generator Hugo - so to use it you need to install Hugo by following https://gohugo.io/getting-started/installing/.

We recommend installing the theme as a [Hugo module](https://gohugo.io/hugo-modules/) (recommended, and explained below).
**We recommend installing the theme as a [Hugo module](https://gohugo.io/hugo-modules/) (recommended, and explained below).**

Other alternative is to use [git submodules](https://gohugo.io/getting-started/quick-start/#create-a-site), or to [download the theme as a zip file](https://github.com/zetxek/adritian-free-hugo-theme/releases), and copy the files to your site. But that will lead to your site being "stuck in time" and more difficult to upgrade. **This is not recommended or supported directly**.
Other alternative is to use [git submodules](https://gohugo.io/getting-started/quick-start/#create-a-site), or to [download the theme as a zip file](https://github.com/zetxek/adritian-free-hugo-theme/releases), and copy the files to your site`*`. But that will lead to your site being "stuck in time" and more difficult to upgrade. **This is not recommended or supported directly**.

> **On the release files:** `*` from the version `v1.5.4` the theme available as a zip file in the [releases page](https://github.com/zetxek/adritian-free-hugo-theme/releases) contains the `node_modules` folder, so you don't need to install it separately. This is provided as a convenience for edge cases that might have problems installing the theme as a module, or downloading many files.__
### As a Hugo Module (recommended)

Expand Down

0 comments on commit 064fdd6

Please sign in to comment.