diff --git a/README.md b/README.md new file mode 100644 index 0000000..9a9cd22 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# Laravel Cloud Deploy + +This GitHub Action will trigger a deployment on Laravel Cloud. + +## Usage + +```yaml +name: Deploy + +on: + push: + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: Deploy + uses: nhedger/laravel-cloud-deploy@v1 + with: + webhook: ${{ secrets.LARAVEL_CLOUD_WEBHOOK }} diff --git a/action.yaml b/action.yaml new file mode 100644 index 0000000..e777bc0 --- /dev/null +++ b/action.yaml @@ -0,0 +1,13 @@ +name: Laravel Cloud Deploy +author: nhedger +description: Trigger a Laravel Cloud deployment +inputs: + webhook: + description: The webhook URL to trigger the deployment + required: true +runs: + using: composite + steps: + - run: | + curl --silent -X POST -H "Accept: application/json" -H "Content-Type: application/json" "${{ inputs.webhook }}" > /dev/null + shell: bash \ No newline at end of file