diff --git a/.github/workflows/sarthi.yml b/.github/workflows/sarthi.yml new file mode 100644 index 0000000..4ad0eef --- /dev/null +++ b/.github/workflows/sarthi.yml @@ -0,0 +1,23 @@ +name: Sarthi Preview Environments +on: + pull_request_target: + types: [ opened, closed, reopened, synchronize ] + pull_request: + types: [ opened, closed, reopened, synchronize ] + push: + # delete preview environments when branches are deleted + delete: + +jobs: + sarthi_job: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Set up Sarthi + uses: tushar5526/sarthi-deploy@main + with: + compose_file: docker-compose.yaml # override this with the compose file name + sarthi_server_url: ${{ secrets.SARTHI_SERVER_URL }} + sarthi_secret: ${{ secrets.SARTHI_SECRET }} # Secret text generate while setting up the server