Bump svg-sprite from 3.0.0-rc1 to 3.0.0-rc3 #1057
Workflow file for this run
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 (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: 18 | |
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" |