-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
84583a0
commit a83c019
Showing
2 changed files
with
30 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: CDN | ||
|
||
on: | ||
push: | ||
tags: [ '**' ] | ||
|
||
jobs: | ||
Upload: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# https://github.com/actions/checkout/issues/701 https://github.com/actions/checkout/pull/579 | ||
fetch-depth: 0 | ||
- uses: azure/login@v1 | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
- run: echo "VERSION=$(git describe --tags)" >> $GITHUB_ENV | ||
- uses: azure/CLI@v1 | ||
with: | ||
inlineScript: | | ||
az storage blob upload --auth-mode key --account-name dvolper -f ./src/Doki.CommandLine/doki.config.schema.json -c cdn -n 'doki/$VERSION/doki.config.schema.json' | ||
- uses: azure/CLI@v1 | ||
with: | ||
inlineScript: | | ||
az cdn endpoint purge --content-paths "/doki/*" --profile-name "dvolper-cdnp" --name "dvolper" --resource-group "dvolper-rg" | ||
- run: | | ||
az logout | ||
if: always() |
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