{"id":24559336,"url":"https://github.com/shravannjain/gh-deployment-workflow","last_synced_at":"2025-03-16T19:41:53.145Z","repository":{"id":268745775,"uuid":"901968459","full_name":"ShravannJain/gh-deployment-workflow","owner":"ShravannJain","description":"This project automates deploying an HTML file to GitHub Pages using GitHub Actions. It triggers deployment on every push to the main branch.","archived":false,"fork":false,"pushed_at":"2024-12-18T16:47:29.000Z","size":328,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T06:16:15.958Z","etag":null,"topics":["ci-cd","git","html5"],"latest_commit_sha":null,"homepage":"https://shravannjain.github.io/gh-deployment-workflow/","language":"HTML","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/ShravannJain.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}},"created_at":"2024-12-11T16:46:18.000Z","updated_at":"2025-01-07T16:33:48.000Z","dependencies_parsed_at":"2024-12-18T17:29:44.444Z","dependency_job_id":"6812fa72-8ba6-4017-b325-b8715c145701","html_url":"https://github.com/ShravannJain/gh-deployment-workflow","commit_stats":null,"previous_names":["shravannjain/gh-deployment-workflow"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShravannJain%2Fgh-deployment-workflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShravannJain%2Fgh-deployment-workflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShravannJain%2Fgh-deployment-workflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShravannJain%2Fgh-deployment-workflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShravannJain","download_url":"https://codeload.github.com/ShravannJain/gh-deployment-workflow/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243922358,"owners_count":20369385,"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":["ci-cd","git","html5"],"created_at":"2025-01-23T06:16:21.239Z","updated_at":"2025-03-16T19:41:53.109Z","avatar_url":"https://github.com/ShravannJain.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploy HTML to GitHub Pages with GitHub Actions\u003c/h1\u003e\n\n## This repository demonstrates a simple HTML deployment to GitHub Pages using GitHub Actions.\n# Overview\n\nThe workflow automates the deployment of an index.html file to GitHub Pages whenever changes are pushed to the main branch. It uses GitHub Actions to streamline this process.\n\n# Workflow Explanation\n\nThe workflow file is located in .github/workflows/deploy.yml. Here's a breakdown of each section:\n\n# Trigger\nThe workflow triggers automatically on a push event to the main branch:\n```\non:\n  push:\n    branches:\n      - main\n```\n# Job: ```deploy```\nThe job runs on Ubuntu and consists of several steps:\n1. Checkout Code\nFetches the repository code so the workflow can access it.\n```\n   - name: Checkout Code \n     uses: actions/checkout@v4\n```\n2. Set Up GitHub Pages\nPrepares the environment for GitHub Pages deployment.\n\n```\n- name: Set up GitHub Pages\n  uses: actions/configure-pages@v4\n```\n3. Upload HTML Files\nUploads the contents of the repository as an artifact to GitHub Pages.\n\n```\n- name: Upload HTML to GitHub Pages\n  uses: actions/upload-pages-artifact@v2\n  with:\n    path: ./  # Uploads everything in the root directory\n```\n 4.  Deploy to GitHub Pages\nDeploys the uploaded artifact to GitHub Pages.\n\n```\n- name: Deploy to GitHub Pages\n  uses: actions/deploy-pages@v2\n```\n\nproject-idea-from: https://roadmap.sh/projects/github-actions-deployment-workflow\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshravannjain%2Fgh-deployment-workflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshravannjain%2Fgh-deployment-workflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshravannjain%2Fgh-deployment-workflow/lists"}