Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a GitHub action to deploy the demo app on Azure #506

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

santoshyadavdev
Copy link
Member

@santoshyadavdev santoshyadavdev commented Jul 12, 2024

Add a GitHub action to deploy the demo app on Azure.

  • Add a new target deploy to the targets section in apps/ngu-carousel-example/project.json with the executor set to @nrwl/workspace:run-commands and the command set to npx ng build ngu-carousel-example.
  • Create a new GitHub action file .github/workflows/deploy-demo-app.yml to deploy the demo app on Azure.
    • Use actions/checkout@v4 to check out the repository.
    • Use actions/setup-node@v4 to set up node 18.
    • Install dependencies using npm ci.
    • Build the app using npm run build.
    • Log in to Azure using azure/login@v1 with secrets.azureenv.
    • Deploy the app to Azure Web App using azure/webapps-deploy@v2 with app-name set to Demo App and the package path set to dist/apps/ngu-carousel-example/browser.

For more details, open the Copilot Workspace session.

Copy link

nx-cloud bot commented Jul 12, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit f773fa3. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant