Skip to content
HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
content
layouts
.gitignore
README.md
config.toml

README.md

Source of https://www.arnavion.dev/

Build

Install hugo extended.

rm -rf ./public/ ./resources/
hugo

Deploy

AZURE_RESOURCE_GROUP_NAME='www-arnavion-dev'
AZURE_STORAGE_ACCOUNT_NAME='wwwarnaviondev'
AZURE_CDN_PROFILE_NAME='www-arnavion-dev'
AZURE_CDN_ENDPOINT_NAME='www-arnavion-dev'

AZURE_STORAGE_ACCOUNT_CONNECTION_STRING="$(
    az storage account show-connection-string \
        --resource-group "$AZURE_RESOURCE_GROUP_NAME" --name "$AZURE_STORAGE_ACCOUNT_NAME" \
        --query connectionString --output tsv
)"

az storage blob delete-batch \
    --connection-string "$AZURE_STORAGE_ACCOUNT_CONNECTION_STRING" \
    --source '$web' \
    --verbose

az storage blob upload-batch \
    --connection-string "$AZURE_STORAGE_ACCOUNT_CONNECTION_STRING" \
    --source "$PWD/public" --destination '$web' --type block \
    --verbose

az cdn endpoint purge \
    --resource-group "$AZURE_RESOURCE_GROUP_NAME" --profile-name "$AZURE_CDN_PROFILE_NAME" --name "$AZURE_CDN_ENDPOINT_NAME" \
    --content-paths '/*'
You can’t perform that action at this time.