Update Config-Zip bundle to trigger on release

- When new release is made, config-zip bundle is made and attached to release. It will also be made available under static url
https://github.com/nunocoracao/blowfish/releases/download/latest/config-default.zip
This commit is contained in:
racehd 2024-12-04 08:04:28 -05:00
parent ee5646f91b
commit 235767e212
2 changed files with 12 additions and 8 deletions

View file

@ -1,4 +1,4 @@
name: Create ZIP
name: Create Config ZIP
on:
release:
types: [published]
@ -10,11 +10,15 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: zip -r config-default.zip config/_default
- uses: actions/upload-artifact@v3
- name: Create/Update latest release # adds file static url
uses: softprops/action-gh-release@v1
with:
name: config-default
path: config-default.zip
- name: Upload to release
files: config-default.zip
tag_name: latest
name: Latest Config Files
body: Automated config files bundle
- name: Add to version release # adds file to the release assets
if: github.event_name == 'release' # run on actual releases, not manual triggers
uses: softprops/action-gh-release@v1
with:
files: config-default.zip

View file

@ -146,7 +146,7 @@ blowfish-tools new mynewsite
> **Note:** Do not overwrite the `module.toml` file you created above!
You will find these theme config files in the Hugo cache directory, or [download a copy](https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nunocoracao/blowfish/tree/main/config/_default) from GitHub.
You will find these theme config files in the Hugo cache directory, or [download a copy](https://github.com/nunocoracao/blowfish/releases/download/latest/config-default.zip) from GitHub.
5. Follow the [Getting Started](https://blowfish.page/docs/getting-started/) instructions to configure your website.