-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Add the concurrency directive to hopefully avoid having any parallel builds of the same branch, which could lead to two builds uploading web files at the same time. 2. Add a delete-web-preview workflow that runs whenever a PR is closed to delete the temporary web build for that branch.
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Build Website | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
pages: write | ||
pull-requests: write | ||
|
||
jobs: | ||
azure_blob: | ||
runs-on: ubuntu-latest | ||
env: | ||
AZURE_STORAGE_ACCOUNT: mappingsexplorer | ||
AZURE_STORAGE_SAS_TOKEN: ${{ secrets.AZURE_SAS_TOKEN }} | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
steps: | ||
- name: Install Azure CLI | ||
run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash | ||
- name: Delete old blobs | ||
run: az storage blob delete-batch -s '$web' --pattern "$BRANCH_NAME/*" |