-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
29d50f7
commit da3d04b
Showing
2 changed files
with
42 additions
and
21 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 |
---|---|---|
@@ -1,21 +1,33 @@ | ||
# 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 | ||
name: Deploy Site on Fleek.xyz | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy-to-fleek: | ||
environment: production | ||
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: Deploy site via Fleek CLI | ||
run: fleek sites deploy |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"sites": [ | ||
{ | ||
"slug": "straight-telephone-crashing", | ||
"distDir": "public", | ||
"buildCommand": "npm install && npm run build" | ||
} | ||
] | ||
} |