Forum Discussion
wfrf92
Feb 09, 2024MCT
GitHub secret for Actions in Visual Stiudio 22
Hi,
I am attempting to deploy to Azure Web App Service using GitHub Actions. I followed the steps in Visual Studio 2022 IDE, but encountered an error. I attempted to locate the 'publish.xml' file to paste it into secrets, but couldn't find it in Azure DevOps. Do we need to migrate the repository to GitHub.com?
1 Reply
Sort By
Yes you need to, take this:
- Migrate your repo to GitHub.com if it’s currently in Azure DevOps.
- In Visual Studio, right-click your project → Publish → choose Azure → select CI/CD using GitHub Actions.
- Let Visual Studio generate the workflow and push it to GitHub.
- If prompted, download the publish profile from Azure and manually add it as a secret in your GitHub repo settings.