Skip to content

Commit

Permalink
Update Config-Zip bundle to trigger on release
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
racehd committed Dec 4, 2024
1 parent ee5646f commit 235767e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/create-config-zip.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create ZIP
name: Create Config ZIP
on:
release:
types: [published]
Expand All @@ -10,12 +10,16 @@ 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
tag_name: ${{ github.event.release.tag_name }}
tag_name: ${{ github.event.release.tag_name }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 235767e

Please sign in to comment.