Skip to content

Commit

Permalink
Update publish-on-fleek.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
arabot-1 authored Dec 12, 2024
1 parent a8d846b commit ab2689c
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/publish-on-fleek.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,32 @@ 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

- name: Activate Fleek
run: mv fleek_${{ inputs.source_branch }}.json .fleek.json

- name: Deploy on Fleek
id: deploy
uses: fleekhq/[email protected]
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 }}"

0 comments on commit ab2689c

Please sign in to comment.