Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/chipzoller/hugo-clarity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanonh <49065692+danonh@users.noreply.github.com>2021-06-09 23:28:42 +0300
committerweru <fromweru@gmail.com>2021-06-09 23:35:45 +0300
commit5edd6595ee640bdde2636a7ca7bc5ba39f16093b (patch)
treec869854537754f4e362292c3c615b0245aaa11f1 /.github
parente23c49ac665a0bc1501dedd34927ec96e3c75e7e (diff)
ci: add Azure Static Web Apps workflow file
on-behalf-of: @Azure opensource@microsoft.com
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/azure-static-web-apps-agreeable-wave-04f2b6c03.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/azure-static-web-apps-agreeable-wave-04f2b6c03.yml b/.github/workflows/azure-static-web-apps-agreeable-wave-04f2b6c03.yml
new file mode 100644
index 0000000..7d87098
--- /dev/null
+++ b/.github/workflows/azure-static-web-apps-agreeable-wave-04f2b6c03.yml
@@ -0,0 +1,45 @@
+name: Azure Static Web Apps CI/CD
+
+on:
+ push:
+ branches:
+ - Clarity
+ pull_request:
+ types: [opened, synchronize, reopened, closed]
+ branches:
+ - Clarity
+
+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@v2
+ with:
+ submodules: true
+ - 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_AGREEABLE_WAVE_04F2B6C03 }}
+ 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 your app requirements. ######
+ # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
+ app_location: "/" # App source code path
+ api_location: "" # Api source code path - optional
+ output_location: "public" # Built app content directory - optional
+ ###### End of Repository/Build Configurations ######
+
+ 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_AGREEABLE_WAVE_04F2B6C03 }}
+ action: "close"