Skip to content

estruyf/presentation-github-actions

Repository files navigation

From Code to Cloud: Automated Deployments with GitHub Actions

This repository contains the slides and demos for the session "From Code to Cloud: Automated Deployments with GitHub Actions".

Variables

  • WEBSITE_URL: https://estruyf.github.io/presentation-github-actions/
  • WEBSITE_URL: https://github-actions.elio.dev

Azure Static Web Apps

  • Preview: https://ambitious-mud-08855ab03-preview.westeurope.5.azurestaticapps.net/
  • Production: https://ambitious-mud-08855ab03.5.azurestaticapps.net/ | https://github-actions.elio.dev

Before you start

  • Create a new repository
  • Clone this project
  • Add the initial files to your repository
  • Create two environments in your repository
    • preview
    • production
  • Add the AZURE_STATIC_WEB_APPS_API_TOKEN secret to the preview & production environment
  • In the pages setting, set the source to GitHub Actions instead of a branch
  • Ready to start

Clean up after the session

Remove all workflow runs:

repo=$(gh repo view --json nameWithOwner | jq -r .nameWithOwner)
gh api repos/$repo/actions/runs --paginate | jq -r -c '.workflow_runs[] | "\(.id)"' | \
xargs -n1 -I % gh api repos/$repo/actions/runs/% -X DELETE | jq -r .status

Quick links

About

GitHub Actions - Presentation

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published