-
Notifications
You must be signed in to change notification settings - Fork 19
32 lines (30 loc) · 1.2 KB
/
create-quarto.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: create-quarto
on:
push:
branches:
- create_quarto
jobs:
create_quarto:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oleksiyrudenko/gha-git-credentials@v2-latest
with:
token: '${{ secrets.GITHUB_TOKEN }}'
- run: |
wget https://github.com/quarto-dev/quarto-cli/releases/download/v1.4.551/quarto-1.4.551-linux-amd64.tar.gz
mkdir ~/opt
tar -C ~/opt -xvzf quarto-1.4.551-linux-amd64.tar.gz
mkdir ~/bin
ln -s ~/opt/quarto-1.4.551/bin/quarto ~/bin/quarto
( echo ""; echo 'export PATH=$PATH:~/bin\n' ; echo "" ) >> ~/.profile
source ~/.profile
quarto check
cd .github/workflows
pip install nbformat nbclient
pip install jupyter matplotlib plotly
quarto render quarto_test.qmd
cp quarto_test_files/figure-html/fig-polar-output-1.png ../../src/assets/
git add ../../src/assets/fig-polar-output-1.png
git commit -m 'Update graph for blog'
git push origin HEAD