Skip to content

Commit f4c2c0d

Browse files
authored
Merge pull request #1 from NFDI4Chem/feature/add-gh-actions
Feature/add gh actions
2 parents edb9910 + 8aa1352 commit f4c2c0d

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.github/workflows/deploy.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches:
4+
- main # Change this to your default branch if it's different
5+
- feature/add-gh-actions # Development here :-)
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: 18 # Use Node.js 18 here
19+
20+
- name: Install dependencies
21+
run: npm install
22+
23+
- name: Build site
24+
run: npm run build
25+
26+
- name: Deploy to GitHub Pages
27+
uses: peaceiris/actions-gh-pages@v3
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: ./build # Change this if your build output directory is different

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ yarn-debug.log*
2020
yarn-error.log*
2121

2222
package-lock.json
23-
yarn.lock
23+
yarn.lock
24+
25+
# Editor backup files
26+
*~

0 commit comments

Comments
 (0)