Azure Storage Action
v1.0
Azure Storage Action
사용하면 워크플로를 자동화하여 Azure Blob Storage에 파일을 배포할 수 있습니다.
.github/workflows/
에 워크플로를 만듭니다.folder
변경합니다. # 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 }}
Azure 서비스 주체, 게시 프로필, 연결 문자열 등과 같은 자격 증명의 경우 GitHub 리포지토리에 비밀로 추가한 다음 워크플로에서 사용하세요.
위의 예에서는 Azure Storage 계정의 연결 문자열을 사용합니다.
비밀을 구성하려면 다음 단계를 따르세요.
.github/workflows/workflow.yml
에서 Azure Storage 작업의 입력 connection-string:
에 대한 비밀을 바꿉니다(위 예제 참조).