From c8cf84cf9f1f7ba80563aca89f600433e16fe8de Mon Sep 17 00:00:00 2001 From: racehd <7813112-racehd@users.noreply.gitlab.com> Date: Mon, 2 Dec 2024 13:25:33 -0500 Subject: [PATCH] Add CI/CD pipeline to bundle config files The CI/CD pipeline will trigger when changes are pushed to config/_default/**. The pipeline will then package the config files into a zip and make them available at a static URL: https://github.com/nunocoracao/blowfish/releases/download/latest/config-default.zip --- .github/workflows/create-config-zip.yml | 21 +++++++++++++++++++++ README.md | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/create-config-zip.yml diff --git a/.github/workflows/create-config-zip.yml b/.github/workflows/create-config-zip.yml new file mode 100644 index 00000000..b562f99e --- /dev/null +++ b/.github/workflows/create-config-zip.yml @@ -0,0 +1,21 @@ +name: Create Config ZIP +on: + push: + paths: + - 'config/_default/**' + +jobs: + zip: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: zip -r config-default.zip config/_default + - uses: actions/upload-artifact@v3 + with: + name: config-default + path: config-default.zip + - name: Upload to release + uses: softprops/action-gh-release@v1 + with: + files: config-default.zip + tag_name: latest \ No newline at end of file diff --git a/README.md b/README.md index ddb6e961..ced7fa32 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ blowfish-tools new mynewsite 3. In the root folder of your website, delete the `config.toml` file that was generated by Hugo. Copy the `*.toml` config files from the theme into your `config/_default/` folder. - 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. 4. Follow the [Getting Started](https://blowfish.page/docs/getting-started/) instructions to configure your website.