Skip to content

Update AntDesign 0.19.2 (#182) #53

Update AntDesign 0.19.2 (#182)

Update AntDesign 0.19.2 (#182) #53

name: Azure Static Web Apps CI/CD
on:
push:
branches:
- master
jobs:
build_and_deploy_job:
if: github.repository_owner == 'ant-design-blazor'
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.100
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Publish Preview πŸŽ‰
run: |
npm install
echo "/* updated `date "+%Y-%m-%d %H:%M:%S"` */" >> ./src/AntDesign.Pro/wwwroot/service-worker.published.js
cp -rf .github/deploy/azure-static-webapp/* ./src/AntDesign.Pro/wwwroot
dotnet build ./AntDesign.Pro.sln
dotnet publish ./src/AntDesign.Pro/AntDesign.Pro.csproj -c Release -o cargo
- name: Build And Deploy
id: builddeploy
uses: Azure/[email protected]
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BRAVE_COAST_0EDCF6600 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match you app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "cargo/wwwroot" # App source code path
# api_location: "api" # Api source code path - optional
output_location: "cargo/wwwroot" # Built app content directory - optional
###### End of Repository/Build Configurations ######