In this workshop, you will implement a CI/CD pipeline to achieve the following tasks:
(on pull requests and pushes to main
)
- Lint the code
- Check the formatting of the code
(only on pushes to main
)
- Build the website distribution
- Upload it to Github Pages
After this has been achieved, you will need to add a new article to the website and create a pull request to add it to the main branch.
- Presentation
- Github Actions general documentation
- Github Actions workflow syntax
- Github Actions workflow contexts
- Github Actions marketplace
- Astro documentation for deploying to Github Pages
npm run setup
: Initial setup of the projectnpm run lint
: Lint the code in the projectnpm run build
: Build the website distributionnpm run format:check
: Check if the code in the project is properly formattednpm run format:write
: Format the code in the project