This repository contains shared workflows and templates for DevOps automation using GitHub Actions. These templates are designed to streamline the CI/CD process for various projects.
To use these shared workflows in your repository, you need to reference them in your GitHub Actions workflow files. Here is an example of how to include a shared workflow:
name: Build and Deploy
on:
push:
branches:
- main
jobs:
build-deploy:
uses: your-org/devops-templates/.github/workflows/build-deploy.yaml@main
with:
nodeVersion: '18.x'
dotnetVersion: '9.0.x'
outputPath: 'publish'
hasTests: true
runCdk: trueWhen using these shared workflows, make sure to enable Read and Write permissions for your GitHub Actions. This is necessary for the workflows to access and modify the repository contents as needed.
To enable Read and Write permissions:
- Go to your repository on GitHub.
- Click on the Settings tab.
- In the left sidebar, click on Actions.
- Under Workflow permissions, select Read and write permissions.
- Click Save to apply the changes.