diff --git a/.github/workflows/publish-wasm-deploy.yml b/.github/workflows/publish-wasm-deploy.yml index 267d93f..7dacb4b 100644 --- a/.github/workflows/publish-wasm-deploy.yml +++ b/.github/workflows/publish-wasm-deploy.yml @@ -1,11 +1,15 @@ name: Deploy WASM on: - workflow_dispatch: + workflow_run: + workflows: ["Publish WASM"] + types: + - completed jobs: deploy: name: 'Deploy to Netlify' + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: @@ -16,4 +20,4 @@ jobs: build_directory: './wwwroot' NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - NETLIFY_DEPLOY_TO_PROD: true \ No newline at end of file + NETLIFY_DEPLOY_TO_PROD: true diff --git a/.github/workflows/publish-wasm.yml b/.github/workflows/publish-wasm.yml index caf5649..5edaff6 100644 --- a/.github/workflows/publish-wasm.yml +++ b/.github/workflows/publish-wasm.yml @@ -1,7 +1,9 @@ -name: Publish WASM and Upload +name: Publish WASM on: - workflow_dispatch: + push: + tags: + - 'v*' env: # Disable the .NET logo in the console output.