Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 2.55 KB

overview-github-actions.md

File metadata and controls

49 lines (31 loc) · 2.55 KB
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

GitHub Actions deployment to Azure in Visual Studio

[!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"

GitHub Actions in Solution Explorer

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.

Screenshot showing 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.

Screenshot of GitHub Actions tab.

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

Visual Studio generates working GitHub Actions workflows for you

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.

Screenshot showing CI/CD publish option.

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.

How do I get my project on github.com?

See create a new Git repository.

See also

GitHub Actions and .NET