name: Deploy After Build on: workflow_run: workflows: [Build] types: [completed] branches: [main] jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/download-artifact@v4 with: name: build-output run-id: ${{ github.event.workflow_run.id }} - name: Deploy run: tar -xzf build-output.tar.gz && ./deploy.sh