diff --git a/.github/workflows/publish-on-fleek.yaml b/.github/workflows/publish-on-fleek.yaml index da56c960..5d2f57f2 100644 --- a/.github/workflows/publish-on-fleek.yaml +++ b/.github/workflows/publish-on-fleek.yaml @@ -15,17 +15,19 @@ on: jobs: build-and-deploy: runs-on: ubuntu-latest + env: + FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN_J }} + FLEEK_PROJECT_ID: ${{ secrets.FLEEK_PROJECT_ID_J }} steps: - name: Checkout code ( Branch=${{ inputs.source_branch }} ) uses: actions/checkout@v4 with: ref: ${{ inputs.source_branch }} - - name: Install NodeJS - uses: actions/setup-node@v4 + - name: Install Node.js + uses: actions/setup-node@v3 with: - node-version: 18 - cache: 'yarn' + node-version: 16 - name: Install and build run: yarn install --frozen-lockfile && yarn build @@ -33,11 +35,12 @@ jobs: - name: Activate Fleek run: mv fleek_${{ inputs.source_branch }}.json .fleek.json - - name: Deploy on Fleek - id: deploy - uses: fleekhq/action-deploy@v1.0.1 - with: - apiKey: ${{ secrets.FLEEK_API_KEY }} + - name: Install Fleek CLI + run: npm i -g @fleek-platform/cli + - name: Build & deploy sites + run: fleek sites deploy + + #- name: Get Fleek output URL ( Branch=${{ inputs.source_branch }} ) + # run: echo "The Fleek output URL is ${{ steps.deploy.outputs.deployUrl }}" + - - name: Get Fleek output URL ( Branch=${{ inputs.source_branch }} ) - run: echo "The Fleek output URL is ${{ steps.deploy.outputs.deployUrl }}"