We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents afcfa29 + e23ede7 commit 9a26d22Copy full SHA for 9a26d22
1 file changed
.github/workflows/main.yml
@@ -0,0 +1,34 @@
1
+name: Deploy to GitHub Pages
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
8
+jobs:
9
+ build-and-deploy:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - name: Checkout code
14
+ uses: actions/checkout@v3
15
16
+ - name: Set up Node.js
17
+ uses: actions/setup-node@v3
18
+ with:
19
+ node-version: 18
20
21
+ - name: Install dependencies
22
+ run: npm install
23
24
+ - name: Build the project
25
+ env:
26
+ REACT_APP_COIN_GECKP_API_KEY: ${{ secrets.REACT_APP_COIN_GECKP_API_KEY }}
27
+ REACT_APP_NEWS_API_KEY: ${{ secrets.REACT_APP_NEWS_API_KEY }}
28
+ run: npm run build
29
30
+ - name: Deploy to GitHub Pages
31
+ uses: peaceiris/actions-gh-pages@v3
32
33
+ github_token: ${{ secrets.GITHUB_TOKEN }}
34
+ publish_dir: ./build
0 commit comments