title | description | author | manager | ms.technology | ms.topic | ms.date | ms.author | monikerRange |
---|---|---|---|---|---|---|---|---|
GitHub Actions |
Set up continuous integration and continuous delivery (CI/CD) deployment to Azure by using GitHub Actions in Visual Studio in Windows. |
ghogen |
jmartens |
vs-azure |
overview |
08/17/2023 |
ghogen |
>=vs-2019 |
[!INCLUDE Visual Studio]
GitHub Actions is the Continuous Integration / Continuous Delivery (CI/CD) solution offered by GitHub. You can host your code for free on github.com and you can use GitHub Actions to automatically build, test and deploy your application when code changes are made.
:::moniker range=">=vs-2022"
Whenever you open a project from a GitHub repo in Visual Studio 2022 version 17.7 and later, any GitHub Actions in the repo are shown under the GitHub Actions node in Solution Explorer.
If you double-click on the action YML file, or select and press Enter to open it, the GitHub Actions tab opens with information about the action, including secrets and hosting information in Azure.
You can also right-click on the YML file to open it in GitHub, or choose Edit to open the YML file itself locally. :::moniker-end
If your codebase is hosted on github.com and your deployment target is an Azure hosting service that Visual Studio supports, you will automatically be offered to configure GitHub Actions for your repo.
Visual Studio also simplifies the process by handling your application secrets for you.
Get started by right-clicking on your project in Solution Explorer and selecting Publish from the context menu. For a tutorial, see Deploy your application to Azure using GitHub Actions workflows created by Visual Studio.