check not full #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ###### |