From 235767e2128ca118ebce9e68ac8eeb7280cca06b Mon Sep 17 00:00:00 2001 From: racehd <7813112-racehd@users.noreply.gitlab.com> Date: Wed, 4 Dec 2024 08:04:28 -0500 Subject: [PATCH] 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 --- .github/workflows/create-config-zip.yml | 16 ++++++++++------ README.md | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/create-config-zip.yml b/.github/workflows/create-config-zip.yml index 2df24601c..96e3ebcde 100644 --- a/.github/workflows/create-config-zip.yml +++ b/.github/workflows/create-config-zip.yml @@ -1,4 +1,4 @@ -name: Create ZIP +name: Create Config ZIP on: release: types: [published] @@ -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 }} \ No newline at end of file diff --git a/README.md b/README.md index ced7fa325..8b76eb0f0 100644 --- a/README.md +++ b/README.md @@ -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.