From fa32b2e3e8fea199f1ba072596a2d4f1771514d8 Mon Sep 17 00:00:00 2001 From: alinasytnik Date: Wed, 23 Aug 2023 13:23:42 +0200 Subject: [PATCH] ci test --- .github/workflows/fleek-deploy.yaml | 21 --------------------- .github/workflows/fleek-deploy.yml | 29 +++++++++++++++++++++++++++++ fleek.config.json | 4 ++-- 3 files changed, 31 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/fleek-deploy.yaml create mode 100644 .github/workflows/fleek-deploy.yml diff --git a/.github/workflows/fleek-deploy.yaml b/.github/workflows/fleek-deploy.yaml deleted file mode 100644 index 8bb7f47..0000000 --- a/.github/workflows/fleek-deploy.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: Deploy site via Fleek -on: push -jobs: - deploy-to-fleek: - runs-on: ubuntu-latest - env: - FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN }} - FLEEK_PROJECT_ID: ${{ secrets.FLEEK_PROJECT_ID }} - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: 19.8.1 - - name: Install Fleek CLI globally - run: npm i -g @fleekxyz/cli - - name: Install dependencies - run: npm install - - name: Build & deploy sites - run: fleek sites deploy \ No newline at end of file diff --git a/.github/workflows/fleek-deploy.yml b/.github/workflows/fleek-deploy.yml new file mode 100644 index 0000000..7ddf974 --- /dev/null +++ b/.github/workflows/fleek-deploy.yml @@ -0,0 +1,29 @@ + name: Deploy Site on Fleek.xyz + + on: + push: + branches: + - main + + jobs: + deploy-to-fleek: + environment: production + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install Fleek CLI globally + run: npm i -g @fleekxyz/cli + + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 19.8.1 + + - name: Install dependencies + run: npm install + + - name: Deploy site via Fleek CLI + run: fleek sites deploy \ No newline at end of file diff --git a/fleek.config.json b/fleek.config.json index c31135c..b87ce02 100644 --- a/fleek.config.json +++ b/fleek.config.json @@ -1,9 +1,9 @@ { "sites": [ { - "slug": "cagey-unkempt-parrot", + "slug": "large-unimportant-balloon", "distDir": "public", - "buildCommand": "yarn run build" + "buildCommand": "yarn && yarn build" } ] } \ No newline at end of file