Skip to content

Releases: c3n21/c3n21.github.io

Release main

15 Jul 14:17
b81a7bd

Choose a tag to compare

Bugfix/deploy workflow (#46)

This pull request simplifies the GitHub Actions workflows by consolidating functionality, removes unused workflows, and adds support for local testing of workflows. Below are the most important changes grouped by theme:

### Workflow Simplification and Consolidation:
* Removed the `release` trigger and associated `if` conditions in `.github/workflows/deploy.yml`, simplifying the workflow to rely only on `push` and `workflow_dispatch` events.
* Deleted the `.github/workflows/release.yml` file, consolidating its functionality into the `deploy.yml` workflow.

### Improvements to Workflow Behavior:
* Updated the concurrency group in `.github/workflows/deploy.yml` to use `${{ github.sha }}` instead of `${{ github.ref }}`, ensuring uniqueness per commit.
* Adjusted the artifact download path for the `deploy-cv` job in `.github/workflows/deploy.yml` to use the root directory instead of a specific file path.

### Local Testing Support:
* Added instructions to `README.md` for testing workflows locally using `act` and `gh` tools, along with caveats about untested workflows.
* Updated `flake.nix` to include `act` and `gh` for local testing of GitHub Actions.
* Added a new script `scripts/sh/test-workflow.sh` to facilitate local testing of workflows.