diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml new file mode 100644 index 0000000..239a0c7 --- /dev/null +++ b/.github/workflows/staging.yml @@ -0,0 +1,22 @@ +on: + push: + branches: + - main +name: Staging to alpha.mgira.pt on push + +jobs: + web-deploy: + name: Staging to alpha.mgira.pt + runs-on: ubuntu-latest + steps: + # Checkout the repository + - name: Get latest code + uses: actions/checkout@v4 + # sync files via FTP + - name: Sync files via FTP + uses: SamKirkland/FTP-Deploy-Action@v4.3.4 + with: + server: ${{ secrets.FTP_SERVER }} + username: ${{ secrets.FTP_USER }} + password: ${{ secrets.FTP_PASS }} + server-dir: /domains/alpha.mgira.pt/public_html/