Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 2 additions & 21 deletions .github/workflows/azure-static-web-apps-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
name: Azure Static Web Apps CI/CD
name: Azure Static Web Apps web components

on:
push:
branches:
- web-components-v3
paths:
- packages/web-components/*
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- web-components-v3
paths:
- packages/web-components/*

permissions:
contents: read
pull-requests: write

jobs:
build_and_deploy_job:
build_and_deploy:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
Expand All @@ -36,15 +29,3 @@ jobs:
app_location: '/packages/web-components' # App source code path relative to repository root
output_location: 'dist/storybook' # Built app content directory, relative to app_location - optional
skip_api_build: true

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.WEB_COMPONENTS_AZURE_STATIC_WEB_APPS_API_TOKEN }}
action: 'close'