File tree Expand file tree Collapse file tree 2 files changed +74
-0
lines changed Expand file tree Collapse file tree 2 files changed +74
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build Blastnet
2+
3+ on :
4+ push :
5+ branches : [ "master" ]
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ concurrency :
14+ group : " pages"
15+ cancel-in-progress : false
16+
17+ jobs :
18+ # Build job
19+ build :
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v4
24+ - name : Setup Pages
25+ id : pages
26+ uses : actions/configure-pages@v5
27+ - name : Build with Jekyll
28+ uses : actions/jekyll-build-pages@v1
29+ with :
30+ source : ./
31+ destination : ./_site
32+ - name : Upload artifact
33+ uses : actions/upload-pages-artifact@v3
34+
35+ # Deployment job
36+ deploy :
37+ environment :
38+ name : github-pages
39+ url : ${{steps.deployment.outputs.page_url}}
40+ runs-on : ubuntu-latest
41+ needs : build
42+ steps :
43+ - name : Deploy to GitHub Pages
44+ id : deployment
45+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1+ name : Update Gist
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 * * * *'
6+ workflow_dispatch :
7+
8+ jobs :
9+ update-gist :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v3
15+
16+ - name : Setup Python
17+ uses : actions/setup-python@v3
18+ with :
19+ python-version : ' 3.x'
20+
21+ - name : Install dependencies
22+ run : pip install -r requirements.txt
23+
24+ - name : Run Python script
25+ env :
26+ GIST_TOKEN : ${{ secrets.GIST_TOKEN }}
27+ KAGGLE_USERNAME : ${{ secrets.KAGGLE_USERNAME }}
28+ KAGGLE_KEY : ${{ secrets.KAGGLE_APIKEY }}
29+ run : python kaggle_json.py
You can’t perform that action at this time.
0 commit comments