mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-01-17 14:18:17 +01:00
Add github actions workflow task
This commit is contained in:
parent
ae7ea40f74
commit
9ec855fb15
@ -2,7 +2,7 @@
|
||||
title: 'Basic Dockerfile'
|
||||
description: 'Build a basic Dockerfile to create a Docker image.'
|
||||
isNew: false
|
||||
sort: 1
|
||||
sort: 4
|
||||
difficulty: 'beginner'
|
||||
nature: 'CLI'
|
||||
skills:
|
||||
|
47
src/data/projects/github-actions-deployment-workflow.md
Normal file
47
src/data/projects/github-actions-deployment-workflow.md
Normal file
@ -0,0 +1,47 @@
|
||||
---
|
||||
title: 'GitHub Pages Deployment'
|
||||
description: 'Write a simple GitHub Actions workflow to deploy a static website to GitHub Pages.'
|
||||
isNew: true
|
||||
sort: 3
|
||||
difficulty: 'beginner'
|
||||
nature: 'CI / CD'
|
||||
skills:
|
||||
- 'github actions'
|
||||
- 'ci/cd'
|
||||
seo:
|
||||
title: 'GitHub Actions Deployment Workflow'
|
||||
description: 'Write a simple GitHub Actions workflow to deploy a static website to GitHub Pages.'
|
||||
keywords:
|
||||
- 'GitHub Actions Deployment Workflow'
|
||||
- 'devops project idea'
|
||||
roadmapIds:
|
||||
- 'devops'
|
||||
---
|
||||
|
||||
The goal of this project is to help you learn the notion of continuous integration and continuous deployment. You will write a simple GitHub Actions workflow to deploy a static website to GitHub Pages.
|
||||
|
||||
## Requirements
|
||||
|
||||
You are required to write a GitHub action that deploys any changes made to the `index.html` file to GitHub Pages. It should only deploy the file when the `index.html` file is changed.
|
||||
|
||||
Here are the steps to get you started:
|
||||
|
||||
- Create a GitHub repository for the project called `gh-deployment-workflow` for example.
|
||||
- Repository should contain a simple `index.html` file saying "Hello, GitHub Actions!"
|
||||
- It should also have a `README.md` file explaining the project.
|
||||
- There should also be a `deploy.yml` file in the `.github/workflows` directory which contains the GitHub Actions workflow to deploy the website to GitHub Pages.
|
||||
- Every push to the `main` branch that changes the `index.html` file should trigger the workflow to run and deploy the website to [GitHub Pages](https://docs.github.com/en/pages).
|
||||
- Website and any changes you make should be accessible at the GitHub pages URL for the repository e.g. `https://<username>.github.io/gh-deployment-workflow/`.
|
||||
|
||||
Stretch goal: create your personal portfolio and deploy it to GitHub Pages. Also, set up a custom domain for your portfolio.
|
||||
|
||||
<hr />
|
||||
|
||||
After finishing this project, you will have a good understanding of the following concepts:
|
||||
|
||||
- GitHub Actions
|
||||
- GitHub Pages
|
||||
- Continuous Integration and Continuous Deployment
|
||||
- Writing GitHub Actions workflows
|
||||
|
||||
Continue solving more projects for advanced CI/CD concepts.
|
@ -2,7 +2,7 @@
|
||||
title: 'Nginx Log Analyser'
|
||||
description: 'Write a simple tool to analyze logs from the command line.'
|
||||
isNew: true
|
||||
sort: 3
|
||||
sort: 1
|
||||
difficulty: 'beginner'
|
||||
nature: 'CLI'
|
||||
skills:
|
||||
|
Loading…
x
Reference in New Issue
Block a user