Skip to content

Commit

Permalink
update azure swa
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 7, 2025
1 parent f73a1ab commit e1141f4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 70 deletions.
47 changes: 0 additions & 47 deletions .github/disabled/azure-static.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@ on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
- azure
- azure-swa
# pull_request:
# types: [opened, synchronize, reopened, closed]
# branches:
# - main

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
# if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
permissions:
id-token: write
contents: read
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -28,10 +30,10 @@ jobs:
uses: actions/github-script@v6
id: idtoken
with:
script: |
const coredemo = require('@actions/core')
return await coredemo.getIDToken()
result-encoding: string
script: |
const coredemo = require('@actions/core')
return await coredemo.getIDToken()
result-encoding: string
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
Expand All @@ -46,13 +48,13 @@ jobs:
github_id_token: ${{ steps.idtoken.outputs.result }}
###### 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:
action: "close"
# 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:
# action: "close"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Continues [Nitro](https://nitro.unjs.io/) deployments for end-to-end testing dep
- Alwaysdata ([docs](https://nitro.unjs.io/deploy/providers/alwaysdata) | [deployment](https://nitro.alwaysdata.net/base/) )
- AWS Lambda ([docs](https://nitro.unjs.io/deploy/providers/aws) | ~~deployment~~ )
- AWS Amplify ([docs](https://nitro.unjs.io/deploy/providers/aws-amplify) | ~~deployment~~ )
- Azure Static Web Apps ([docs](https://nitro.unjs.io/deploy/providers/azure#azure-static-web-apps) | ~~deployment~~ )
- Azure Static Web Apps ([docs](https://nitro.unjs.io/deploy/providers/azure#azure-static-web-apps) | [deployment](https://delightful-mushroom-0f662f303.4.azurestaticapps.net/base/) )
- Azure Functions ([docs](https://nitro.unjs.io/deploy/providers/azure#azure-functions) | ~~deployment~~ )
- Cleavr ([docs](https://nitro.unjs.io/deploy/providers/cleavr) | ~~deployment~~ )
- Cloudflare Pages ([docs](https://nitro.unjs.io/deploy/providers/cloudflare) | [deployment](https://nitro-deployment.pages.dev/base/) )
Expand Down
2 changes: 1 addition & 1 deletion deployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const deployments = [
},
{
name: "Azure Static Web Apps",
url: "",
url: "https://delightful-mushroom-0f662f303.4.azurestaticapps.net/",
dash: "https://azure.microsoft.com/en-us/products/app-service/static",
docs: "https://nitro.unjs.io/deploy/providers/azure#azure-static-web-apps",
},
Expand Down

0 comments on commit e1141f4

Please sign in to comment.