Azure Storage Action
v1.0
With Azure Storage Action, you can automate your workflow to deploy files to Azure Blob Storage
.github/workflows/ in your project repository.folder to your folder path where files to deploy are.# File: .github/workflows/workflow.yml
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.0.100'
- uses: lauchacarro/Azure-Storage-Action@master
with:
enabled-static-website: 'true'
folder: 'MyFolder'
index-document: 'index.html'
error-document: '404.html' # For Angular apps with routing enabled, this must point to the index.html file because the requested routes don't exist phyiscally and blob storage would throw a 404.
connection-string: ${{ secrets.CONNECTION_STRING }}
For any credentials like Azure Service Principal, Publish Profile, Connection Strings, etc add them as secrets in the GitHub repository and then use them in the workflow.
The above example uses the Connection String of your Azure Storage Account.
Follow the steps to configure the secret:
.github/workflows/workflow.yml replace the secret for the input connection-string: of the Azure Storage Action (Refer to the example above).