diff --git a/.github/workflows/release_staging.yml b/.github/workflows/release_staging.yml new file mode 100644 index 0000000..7f00a0c --- /dev/null +++ b/.github/workflows/release_staging.yml @@ -0,0 +1,33 @@ +name: Deploy to Azure Staging + +on: + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Download artifact + uses: dawidd6/action-download-artifact@v3 + with: + workflow: build.yml + name: build-artifact + path: ./deploy + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: "16" + + - name: Deploy to Azure App Service + uses: azure/webapps-deploy@v2 + with: + app-name: auroria-test-faucet # Replace with your Azure App Service name + slot-name: staging + publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE_STAGING }} # Azure publish profile secret + package: ./deploy # Path to the downloaded artifact