Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 2.75 KB

README.md

File metadata and controls

53 lines (37 loc) · 2.75 KB

Workshop CI/CD with Github Actions (SINF 2024)

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.

Useful links

Useful commands

  • npm run setup: Initial setup of the project
  • npm run lint: Lint the code in the project
  • npm run build: Build the website distribution
  • npm run format:check: Check if the code in the project is properly formatted
  • npm run format:write: Format the code in the project

Tips!

Caution

  1. Don't forget to enable GitHub Pages in your repository settings. Go to Settings > Pages and change Build and Deployment > Source to GitHub Actions.
  2. Don't forget to change repositoryName in astro.config.mjs to the name of your repository.

A possible solution

In case you get stuck or are just curious, a possible solution is available at limwa/workshop-ci-cd-sinf-2024.

You can also check all Actions executions for that repository here. The resulting pages deployment is available here.