-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
a3f0c38
commit 0df1b37
Showing
1 changed file
with
36 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Rapid API | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
REACT_APP_RAPID_API_HOST: ${{ secrets.REACT_APP_RAPID_API_HOST }} | ||
REACT_APP_RAPID_API_KEY: ${{ secrets.REACT_APP_RAPID_API_KEY }} | ||
REACT_APP_RAPID_API_URL: ${{ secrets.REACT_APP_RAPID_API_URL }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Build project | ||
run: npm run build | ||
|
||
- name: Deploy to a server or hosting platform | ||
run: | | ||
echo "Deploying to server" | ||
# Add your deployment commands here, for example: | ||
# scp -r ./build user@server:/path/to/deploy |