Skip to content

Commit 0b505b2

Browse files
authored
New splitted external workflow deployment
1 parent 7190bf3 commit 0b505b2

File tree

1 file changed

+22
-43
lines changed

1 file changed

+22
-43
lines changed

.github/workflows/build.yml

+22-43
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,28 @@
1-
name: build
1+
name: Main Workflows
22

33
on:
4-
schedule:
5-
- cron: '0 0 * * 0'
6-
workflow_dispatch:
74
push:
8-
branches: main
9-
10-
jobs:
11-
build-deploy:
12-
runs-on: ubuntu-latest
13-
permissions:
14-
contents: write
15-
steps:
16-
- name: Check out repository
17-
uses: actions/checkout@v2
5+
branches: ["main"]
6+
repository_dispatch:
7+
types: [custom-event]
8+
workflow_dispatch:
189

19-
- name: Set up quarto
20-
uses: quarto-dev/quarto-actions/setup@v2
21-
with:
22-
version: pre-release
23-
tinytex: true
10+
permissions:
11+
contents: write
12+
pages: write
2413

25-
- name: register tinytex globally for diagram.lua
26-
run: |
27-
mkdir -p ~/.local/bin
28-
~/.TinyTeX/bin/x86_64-linux/tlmgr update --self
29-
~/.TinyTeX/bin/x86_64-linux/tlmgr option sys_bin ~/.local/bin
30-
~/.TinyTeX/bin/x86_64-linux/tlmgr path add
31-
~/.TinyTeX/bin/x86_64-linux/tlmgr install libertinus-fonts
3214

33-
- name: Install Computo extension for Quarto
34-
run: |
35-
quarto add --no-prompt computorg/computo-quarto-extension
36-
37-
- name: Install Python and Dependencies
38-
uses: actions/setup-python@v4
39-
with:
40-
python-version: '3.10'
41-
cache: 'pip'
42-
- run: pip install -r requirements.txt
43-
44-
- name: Render and Publish
45-
uses: quarto-dev/quarto-actions/publish@v2
46-
with:
47-
target: gh-pages
48-
env:
49-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
jobs:
16+
call_env_workflow:
17+
uses: computorg/workflows/.github/workflows/global-env.yml@main
18+
secrets:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
config-path: './config/quarto_config.yml'
22+
call_quartopublish_workflow:
23+
uses: computorg/workflows/.github/workflows/publish-render.yml@main
24+
needs: call_env_workflow
25+
with:
26+
config-path: './config/quarto_config.yml'
27+
secrets:
28+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)