You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This action is uploading a SPA to azure blob and activates the entrypoint at last so that zero downtime is possible
1
+
# GitHub Action to Upload SPA Assets to Azure Blob Storage
2
+
This action is uploading a SPA to azure blob and activates the entrypoint at last so that zero downtime is possible. It is designed
3
+
to use the [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest) to upload a directory
4
+
of your choice to your Azure Blob Storage account and upadte the index.html at the last file. This leads to a zero downtime
5
+
option.
6
+
7
+
## Usage
8
+
9
+
### Example
10
+
11
+
Place in a `.yml` file such as this one in your `.github/workflows` folder. [Refer to the documentation on workflow YAML syntax here.](https://help.github.com/en/articles/workflow-syntax-for-github-actions)
12
+
13
+
```yaml
14
+
name: Upload SPA To Azure Blob Storage
15
+
on:
16
+
push:
17
+
branches:
18
+
- main
19
+
jobs:
20
+
upload:
21
+
runs-on: ubuntu-latest
22
+
steps:
23
+
- uses: actions/checkout@v4
24
+
- uses: dei79/upload-spa-to-azure-blob@main
25
+
with:
26
+
connectionstring: ${{ secrets.ConnectionString }}
27
+
container: publicweb
28
+
source: _dist
29
+
```
30
+
31
+
If you want to synchronize local and remote state (for example, if you are publishing a static website), enable the `sync` flag.
0 commit comments