Skip to content

Remove unneeded Material icon folders #447

Remove unneeded Material icon folders

Remove unneeded Material icon folders #447

name: Azure Static Web Apps CI/CD (Deploy Preview)
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
workflow_dispatch:
jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: 16
cache: "npm"
- name: Install npm dependencies
run: npm ci
- name: Install Angular setup
run: npm run install:components
- name: Build the icons
run: npm run build
- name: Build the docs
run: npm run docs:build
- name: Delete any duplicate Azure Static Web Apps comments
continue-on-error: true
run: |
gh api repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments `
| ConvertFrom-Json `
| Where-Object body -like 'Azure Static Web Apps: Your stage site is ready! Visit it here: *' `
| ForEach-Object {
gh api repos/${{ github.repository }}/issues/comments/$($_.id) -X DELETE
}
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS_SKY_021D71010 }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: "upload"
app_build_command: "npx hugo --config hugo.yml,hugo-dev.yml"
skip_app_build: "true"
app_location: "_site" # App source code path
api_location: "" # Api source code path - optional
output_location: "_site" # Built app content directory - optional
close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS_SKY_021D71010 }}
action: "close"