diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..4419416 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ +name: Services +on: + push: + branches: [main] + +jobs: + build_deploy: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./frontend + steps: + - name: checkout + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 16.14.2 + - name: Installing Dependencies + run: npm ci + - name: Building + run: npm run build + - name: Deploying + uses: SamKirkland/FTP-Deploy-Action@v4.3.4 + with: + server: ${{ secrets.FTP_SERVER }} + username: ${{ secrets.FTP_USERNAME }} + password: ${{ secrets.FTP_PASSWORD }} + local-dir: "frontend/build/"