A minimal ASP.NET Core 8.0 (LTS) web application displaying "RIP Chico" centered on a single page.
- Single page displaying "RIP Chico"
- No authentication or database
- Built with ASP.NET Core 8.0 (latest LTS)
- Automated deployment to Azure App Service via GitHub Actions
- .NET 8.0 SDK
- (For deployment) Azure App Service instance
-
Clone the repository:
git clone https://github.com/lucasmat7/rip-chico.git cd rip-chico -
Navigate to the project directory:
cd RipChico -
Run the application:
dotnet run
-
Open your browser and navigate to:
http://localhost:5000
To build the application:
cd RipChico
dotnet buildTo publish the application for deployment:
cd RipChico
dotnet publish --configuration Release --output ./publishThis repository includes a GitHub Actions workflow that automatically builds and deploys the application to Azure App Service on every push to the main branch.
-
Create an Azure App Service:
- Go to the Azure Portal
- Create a new App Service with .NET 8 runtime
- Note the app name
-
Download the Publish Profile:
- In the Azure Portal, go to your App Service
- Click "Get publish profile" and download the file
- Copy the entire contents of the downloaded
.PublishSettingsfile
-
Add GitHub Secret:
- Go to your GitHub repository
- Navigate to Settings → Secrets and variables → Actions
- Click "New repository secret"
- Name:
AZURE_WEBAPP_PUBLISH_PROFILE - Value: Paste the contents of the publish profile file
- Click "Add secret"
-
Update Workflow File:
- Edit
.github/workflows/azure-deploy.yml - Replace
your-app-namewith your actual Azure App Service name
- Edit
-
Deploy:
- Push changes to the
mainbranch - GitHub Actions will automatically build and deploy the application
- Check the "Actions" tab in GitHub to monitor the deployment
- Push changes to the
The workflow (.github/workflows/azure-deploy.yml) performs the following steps:
- Checks out the code
- Sets up .NET 8.0
- Restores dependencies
- Builds the application in Release mode
- Publishes the application
- Deploys to Azure App Service using the publish profile
rip-chico/
├── .github/
│ └── workflows/
│ └── azure-deploy.yml # GitHub Actions workflow for Azure deployment
├── RipChico/ # ASP.NET Core application
│ ├── Pages/
│ │ ├── Index.cshtml # Main page with "RIP Chico" text
│ │ ├── Index.cshtml.cs # Page model
│ │ └── Shared/
│ │ └── _Layout.cshtml # Layout template
│ ├── wwwroot/ # Static files
│ ├── Program.cs # Application entry point
│ └── RipChico.csproj # Project file
└── README.md # This file
This project is open source and available for any use.