-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }}" |