{"id":27781238,"url":"https://github.com/valeriogc/github-actions-templates","last_synced_at":"2026-04-30T13:34:00.877Z","repository":{"id":290375231,"uuid":"974193755","full_name":"ValerioGc/github-actions-templates","owner":"ValerioGc","description":"A suite of reusable GitHub Actions workflows for frontend CI/CD (Node/Vite), backend deployments (PHP, Java), and automated versioning \u0026 releases designed for rapid setup and easy customization.","archived":false,"fork":false,"pushed_at":"2025-04-28T13:10:49.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-28T14:24:53.538Z","etag":null,"topics":["automation","bash","deploy","github-actions","pipeline","workflow"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ValerioGc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-28T11:56:36.000Z","updated_at":"2025-04-28T13:10:52.000Z","dependencies_parsed_at":"2025-04-28T14:24:57.354Z","dependency_job_id":"e0a0d992-ec15-4eb9-ab97-f8b5c87cefb9","html_url":"https://github.com/ValerioGc/github-actions-templates","commit_stats":null,"previous_names":["valeriogc/github-actions-templates"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValerioGc%2Fgithub-actions-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValerioGc%2Fgithub-actions-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValerioGc%2Fgithub-actions-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValerioGc%2Fgithub-actions-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ValerioGc","download_url":"https://codeload.github.com/ValerioGc/github-actions-templates/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251702737,"owners_count":21630080,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","bash","deploy","github-actions","pipeline","workflow"],"created_at":"2025-04-30T12:43:29.203Z","updated_at":"2026-04-30T13:34:00.870Z","avatar_url":"https://github.com/ValerioGc.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Actions Workflow Templates\n\nThis repository provides a suite of **reusable GitHub Actions workflow templates** designed to accelerate CI/CD setup for common frontend, backend, and release tasks. Drop these YAML files into your own repository’s `.github/workflows/` directory and customize branch names or parameters as needed or simply copy the steps that you need into your existing workflows.\n\n## Available Templates\n\n### 1. `frontend_utils.yaml`\n\nA complete CI/CD pipeline for single‑page applications built with Node.js and Vite (Vue, React, etc.):\n   - **build-and-test**: Checks out code, sets up Node.js, installs dependencies, runs unit tests (`npm run test:unit`), builds production assets (`npm run build:prod`), then commits and pushes the `dist/` output back to the `deploy-branch`.  \n  - **deploy-production**: Merges `deploy-branch` into `prod`, cleans up the workspace, moves built assets from `dist/` to root, commits \u0026 pushes to `prod`.  \n  - **rollback-all**: On any failure, restores `prod` from a temporary backup branch and resets `deploy-branch`.  \n  - **cleanup-workspace**: Always runs last to delete temp branches and clear the workspace.\n\n\n### 2. `backend_utils.yaml`\n\nA flexible workflow for backend deployments (PHP Laravel, Java, etc.):\n  - **replace-env-file**: Replaces `.env` with `.env.production` (forces add, commits \u0026 pushes), removes `.env.development`.  \n  - **rollback-all**: On failure, reverts `.env` from `.env.development` backup and force-pushes to preserve local dev state.\n\n### 3. `versioning_utils.yaml`\n\nAutomates version management and GitHub releases:\n\n  - **check-deploy-version**: Reads `version` from `package.json`, bumps patch version if a matching Git tag already exists, commits \u0026 pushes the new version.  \n  - **create-release**: After successful CI and deployment, reads `CHANGELOG.txt` (or uses a default message), creates a GitHub Release with tag `PRODUCTION_V_\u003cversion\u003e` and uses `actions/create-release@v1`. Empties `CHANGELOG.txt` on success.  \n  - **rollback-all**: If release creation fails, deletes the created GitHub Release and tag using the GitHub REST API.\n\n## Usage\n\n1. **Integration** \n  - Copy the desired template file(s) into your project under:\n    .github/workflows/frontend_utils.yaml \n    .github/workflows/backend_utils.yaml \n    .github/workflows/versioning_utils.yaml\n\n1. **Customize**:\n  - Change branch names (`deploy-branch`, `prod` or `prod-branch`, etc.) to match your workflow.  \n  - Adjust step commands (`npm run build:prod`, Laravel commands, etc.) as necessary.  \n  \n2. **Commit \u0026 push** to your repository. The workflows will run automatically on the configured events.\n\n---\n\n\u003e For detailed examples and parameter customization, refer to the comments inside each YAML template.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaleriogc%2Fgithub-actions-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaleriogc%2Fgithub-actions-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaleriogc%2Fgithub-actions-templates/lists"}