Skip to content

Merge pull request #12 from AcademiaY4/develop #17

Merge pull request #12 from AcademiaY4/develop

Merge pull request #12 from AcademiaY4/develop #17

Workflow file for this run

name: Build and Deploy to Azure
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
- name: Restore
run: dotnet restore ./backend.sln
- name: Build
run: dotnet build ./backend.sln --configuration Release --no-restore
- name: Publish
run: dotnet publish ./backend.sln --configuration Release --no-build --output './publish'
- name: Deploy to Azure
uses: azure/webapps-deploy@v2
with:
app-name: apekadeserver
publish-profile: ${{ secrets.AWPP }}
package: './publish'
- name: Deploy Summary
run: |
echo '### πŸš€ Build and Deploy Summary' > $GITHUB_STEP_SUMMARY
echo '' >> $GITHUB_STEP_SUMMARY
echo 'πŸ”§ **Build Status**: The app has been successfully built.' >> $GITHUB_STEP_SUMMARY
echo 'πŸš€ **Deploy Status**: The app has been successfully deployed to Azure.' >> $GITHUB_STEP_SUMMARY
echo '' >> $GITHUB_STEP_SUMMARY
echo 'πŸ› οΈ **Solution**: backend.sln' >> $GITHUB_STEP_SUMMARY
echo 'πŸ“¦ **Build Configuration**: Release' >> $GITHUB_STEP_SUMMARY
echo 'πŸ“‚ **Output Directory**: ./publish' >> $GITHUB_STEP_SUMMARY
echo '🌍 **Azure App Name**: apekade-server' >> $GITHUB_STEP_SUMMARY
echo '' >> $GITHUB_STEP_SUMMARY
echo 'πŸŽ‰ **Thanks for using GitHub Actions!**' >> $GITHUB_STEP_SUMMARY