Skip to content

Commit 1cea24b

Browse files
committed
testing ptable wf
1 parent bfebad0 commit 1cea24b

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

.github/workflows/update-ptable.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
- cron: "0 3 * * 0" # every Sunday at 03:00 UTC
66
workflow_dispatch: # allow manual triggering
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
update-cache:
1013
runs-on: ubuntu-latest
@@ -14,6 +17,7 @@ jobs:
1417
uses: actions/checkout@v4
1518
with:
1619
fetch-depth: 0 # required for committing
20+
persist-credentials: true
1721

1822
- name: Set up Node
1923
uses: actions/setup-node@v4
@@ -37,3 +41,15 @@ jobs:
3741
else
3842
echo "No changes detected, nothing to commit."
3943
fi
44+
45+
# Build site
46+
- name: Build site
47+
run: npm run build
48+
49+
# Deploy to GitHub Pages
50+
- name: Deploy to GitHub Pages
51+
uses: JamesIves/github-pages-deploy-action@v4
52+
with:
53+
branch: gh-pages
54+
folder: dist
55+
github-token: ${{ secrets.GITHUB_TOKEN }}

public/cachedPTable.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@
617617
{
618618
"providerUrl": "https://optimade.materialscloud.org/main/mc3d-pbe-v1",
619619
"ptable": {
620-
"H": true,
620+
"H": false,
621621
"He": true,
622622
"Li": true,
623623
"Be": true,
@@ -863,7 +863,7 @@
863863
{
864864
"providerUrl": "https://optimade.materialscloud.org/main/mc3d-pbesol-v2",
865865
"ptable": {
866-
"H": true,
866+
"H": false,
867867
"He": true,
868868
"Li": true,
869869
"Be": true,
@@ -4181,4 +4181,4 @@
41814181
"Lr": false
41824182
}
41834183
}
4184-
]
4184+
]

0 commit comments

Comments
 (0)