fix(cyber-lounge): correct heading #464
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
name: ๐ Production Deployment to https://co-IT.eu | |
on: | |
workflow_dispatch: | |
push: | |
branches: ['main'] | |
jobs: | |
deploy: | |
name: ๐ Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: ๐ Get latest code | |
uses: actions/checkout@v3 | |
- name: ๐ฆ Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 7.25.0 | |
- name: ๐ทโโ๏ธ Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: ๐ฟ Install dependencies | |
run: pnpm install | |
- name: ๐ ๏ธ Build app | |
run: pnpm build --prod | |
- name: ๐ Azure Login | |
uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: ๐ฎ Azure delete old Static Website | |
uses: azure/CLI@v1 | |
with: | |
inlineScript: | | |
az storage blob delete-batch --pattern '*' --account-name coiteu --auth-mode key -s '$web' | |
- name: ๐ข Deploy to Azure Static Website | |
uses: azure/CLI@v1 | |
with: | |
inlineScript: | | |
az storage blob upload-batch --overwrite --account-name coiteu --auth-mode key -d '$web' -s './dist' | |
- name: ๐งน Azure purge CDN | |
uses: azure/CLI@v1 | |
with: | |
inlineScript: | | |
az account set --subscription "Productive_Sites" | |
az afd endpoint purge --content-paths "/*" --profile-name "coiteu" --endpoint-name "coiteu" --resource-group "coIteu" --domains "co-it.eu" | |
- name: ๐ช Azure logout | |
run: | | |
az logout | |
if: always() |