{"id":32516205,"url":"https://github.com/cssnr/workflows","last_synced_at":"2026-02-27T04:31:45.554Z","repository":{"id":320299160,"uuid":"920852422","full_name":"cssnr/workflows","owner":"cssnr","description":"Reusable Workflows","archived":false,"fork":false,"pushed_at":"2025-11-10T04:59:33.000Z","size":18,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-10T05:33:05.520Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://actions.cssnr.com","language":null,"has_issues":true,"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/cssnr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"ko_fi":"cssnr"}},"created_at":"2025-01-22T22:04:19.000Z","updated_at":"2025-11-10T04:22:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"8147a1b3-64a9-443d-97c1-49fca40952c5","html_url":"https://github.com/cssnr/workflows","commit_stats":null,"previous_names":["cssnr/workflows"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cssnr/workflows","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssnr%2Fworkflows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssnr%2Fworkflows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssnr%2Fworkflows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssnr%2Fworkflows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cssnr","download_url":"https://codeload.github.com/cssnr/workflows/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssnr%2Fworkflows/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29884697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-10-28T01:20:36.188Z","updated_at":"2026-02-27T04:31:45.549Z","avatar_url":"https://github.com/cssnr.png","language":null,"funding_links":["https://ko-fi.com/cssnr"],"categories":[],"sub_categories":[],"readme":"[![Workflow Lint](https://img.shields.io/github/actions/workflow/status/cssnr/workflows/.lint.yaml?logo=cachet\u0026label=lint)](https://github.com/cssnr/workflows/actions/workflows/.lint.yaml)\n[![GitHub Last Commit](https://img.shields.io/github/last-commit/cssnr/workflows?logo=vitepress\u0026logoColor=white\u0026label=updated)](https://github.com/cssnr/workflows/pulse)\n[![GitHub Contributors](https://img.shields.io/github/contributors-anon/cssnr/workflows?logo=github)](https://github.com/cssnr/workflows/graphs/contributors)\n[![GitHub Repo Size](https://img.shields.io/github/repo-size/cssnr/workflows?logo=bookstack\u0026logoColor=white\u0026label=repo%20size)](https://github.com/cssnr/workflows)\n[![GitHub Discussions](https://img.shields.io/github/discussions/cssnr/workflows?logo=github)](https://github.com/cssnr/workflows/discussions)\n[![GitHub Repo Stars](https://img.shields.io/github/stars/cssnr/workflows?style=flat\u0026logo=github)](https://github.com/cssnr/workflows/stargazers)\n[![GitHub Org Stars](https://img.shields.io/github/stars/cssnr?style=flat\u0026logo=github\u0026label=org%20stars)](https://cssnr.github.io/)\n[![Discord](https://img.shields.io/discord/899171661457293343?logo=discord\u0026logoColor=white\u0026label=discord\u0026color=7289da)](https://discord.gg/wXy6m2X8wY)\n[![Ko-fi](https://img.shields.io/badge/Ko--fi-72a5f2?logo=kofi\u0026label=support)](https://ko-fi.com/cssnr)\n\n# Workflows\n\n~~Reusable~~ Workflows.\n\n- https://docs.github.com/en/actions/how-tos/reuse-automations/reuse-workflows\n\nComing soon...\n\n| Workflow File                                              | Uses Line                                              |\n| :--------------------------------------------------------- | :----------------------------------------------------- |\n| [npm-build.yaml](.github/workflows/npm-build.yaml)         | `cssnr/workflows/.github/workflows/npm-build.yaml`     |\n| [deploy-static.yaml](.github/workflows/deploy-static.yaml) | `cssnr/workflows/.github/workflows/deploy-static.yaml` |\n\nExample using both workflows: [django-files/django-files.github.io/dev.yaml](https://github.com/django-files/django-files.github.io/blob/master/.github/workflows/dev.yaml)\n\n### npm-build.yaml\n\n```yaml\njobs:\n  build:\n    name: \"Build\"\n    if: ${{ !contains(github.event.head_commit.message, '#nodev') }}\n    uses: cssnr/workflows/.github/workflows/npm-build.yaml@master\n    permissions:\n      contents: read\n    with:\n      install: \"npm ci\" # install command\n      build: \"npm run build\" # build command\n      path: \"dist\" # directory of artifacts\n      name: \"artifact\" # artifact name\n      pages: false # create a pages artifact\n    secrets:\n      webhook: ${{ secrets.webhook }} # failure notification\n\n  # Example Usage\n  deploy:\n    name: \"Deploy\"\n    needs: build\n    runs-on: ubuntu\n    steps:\n      - name: \"Download Artifact\"\n        uses: actions/download-artifact@v5\n        with:\n          name: \"artifact\"\n      - name: \"Debug\"\n        run: ls -lAh .\n```\n\n### deploy-static.yaml\n\n```yaml\njobs:\n  build:\n    # Example Usage\n    - name: \"Upload Artifact\"\n      uses: actions/upload-artifact@v4\n      with:\n        path: dist\n        name: \"artifact\"\n\n  deploy:\n    name: \"Deploy\"\n    uses: cssnr/workflows/github/workflows/deploy-static.yaml\n    needs: build\n    permissions:\n      contents: read\n    with:\n      name: \"dev\" # Environment name and url\n      url: \"https://dev-static.cssnr.com/github-projects\"\n      path: \"github-projects\" # Optional path/subdirectory\n      robots: true # Add robots.txt to block robots\n      artifact: \"artifact\" # Custom artifact name\n      dest: \"/static\" # Target rsync destination\n    secrets:\n      host: ${{ secrets.DEV_DEPLOY_HOST }}\n      port: ${{ secrets.DEV_DEPLOY_PORT }}\n      user: ${{ secrets.DEV_DEPLOY_USER }}\n      pass: ${{ secrets.DEV_DEPLOY_PASS }}\n      webhook: ${{ secrets.DISCORD_WEBHOOK }} # Optional discord notification\n```\n\n# Contributing\n\nFor instructions on modifying the documentation see the [CONTRIBUTING.md](#contributing-ov-file).\n\nPlease consider making a donation to support the development of this project\nand [additional](https://cssnr.com/) open source projects.\n\n[![Ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/cssnr)\n\nFor a full list of current projects visit: [https://cssnr.github.io/](https://cssnr.github.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssnr%2Fworkflows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcssnr%2Fworkflows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssnr%2Fworkflows/lists"}