From d97258e9225a2d940592d5912401f90ef7ed33f2 Mon Sep 17 00:00:00 2001 From: Dmytro Tkachenko Date: Tue, 22 Oct 2024 23:57:42 +0300 Subject: [PATCH] Actions --- .gitea/workflows/build-develop.yaml | 48 +++++++++++++++++++ .../{build.yaml => build-master.yaml} | 0 2 files changed, 48 insertions(+) create mode 100644 .gitea/workflows/build-develop.yaml rename .gitea/workflows/{build.yaml => build-master.yaml} (100%) diff --git a/.gitea/workflows/build-develop.yaml b/.gitea/workflows/build-develop.yaml new file mode 100644 index 0000000..029266c --- /dev/null +++ b/.gitea/workflows/build-develop.yaml @@ -0,0 +1,48 @@ +name: Build Action +run-name: Test is testing out Gitea Actions 🚀 +on: +# schedule: +# - cron: '* * * * *' + push: + branches: + - 'develop' + +jobs: + Run-Build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Use Node.js 20.x + uses: actions/setup-node@v3 + with: + node-version: 20.11.0 + - name: Install Yarn + run: npm install -g yarn + - name: Yarn cache + uses: actions/cache@v3 + id: yarn-cache + with: + path: | + ${{ steps.yarn-cache-dir.outputs.dir }} + node_modules + */node_modules + */*/node_modules + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - name: Build App + run: | + yarn + yarn build + - name: Deploy + uses: SamKirkland/FTP-Deploy-Action@v4.3.5 + with: + server: mycloud.dp.ua + username: d.tkachenko + port: 2121 + password: ${{ secrets.FTP_PASSWORD }} + local-dir: ./public/ + server-dir: /web/poc-dev/ diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build-master.yaml similarity index 100% rename from .gitea/workflows/build.yaml rename to .gitea/workflows/build-master.yaml