Skip to content

Commit 0144f5f

Browse files
authored
Merge pull request #10 from computorg/new-workflow
passing to the new workflow, .gitignore update
2 parents 506267e + 7734582 commit 0144f5f

File tree

2 files changed

+31
-50
lines changed

2 files changed

+31
-50
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,23 @@
1-
name: build
1+
name: Main Workflows
2+
23
on:
34
push:
4-
branches:
5-
- master
6-
- main
5+
branches: ["main","master"]
6+
repository_dispatch:
7+
types: [custom-event]
8+
workflow_dispatch:
9+
pull_request:
10+
branches: ["main","master"]
711

8-
env: # Change this if needed
9-
quarto_file: published-elmasri-optimal
10-
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1112

1213
jobs:
13-
computorticle:
14-
runs-on: ubuntu-latest
15-
16-
steps:
17-
- name: Checking out repository for Github action
18-
uses: actions/checkout@v2
19-
20-
- name: Installing dependencies with Micromamba
21-
uses: mamba-org/provision-with-micromamba@main
22-
with:
23-
cache-env: true
24-
25-
- name: Installing quarto
26-
uses: quarto-dev/quarto-actions/setup@v2
27-
with:
28-
tinytex: true
29-
30-
- name: register tinytex globally for diagram.lua
31-
run: |
32-
mkdir -p ~/.local/bin
33-
~/.TinyTeX/bin/x86_64-linux/tlmgr option sys_bin ~/.local/bin
34-
~/.TinyTeX/bin/x86_64-linux/tlmgr path add
35-
~/.TinyTeX/bin/x86_64-linux/tlmgr install libertinus-fonts
36-
37-
- name: Install Computo extension for Quarto
38-
run: |
39-
quarto add --no-prompt computorg/computo-quarto-extension
40-
41-
- name: Rendering with Quarto
42-
shell: bash -l {0}
43-
run: |
44-
quarto render ${{ env.quarto_file }}.qmd
45-
mkdir _build
46-
mv ${{ env.quarto_file }}.html _build/index.html
47-
mv -vf ${{ env.quarto_file }}_files figures ${{ env.quarto_file }}.pdf _build/
48-
cp environment.yml _build/
49-
touch _build/.nojekyll
14+
call_env_workflow:
15+
uses: computorg/workflows/.github/workflows/global-env.yml@main
16+
call_quartopublish_workflow:
17+
permissions:
18+
id-token: write
19+
contents: write
20+
pages: write
21+
uses: computorg/workflows/.github/workflows/publish-render.yml@main
22+
needs: call_env_workflow
5023

51-
- name: Deploying article on github pages
52-
uses: JamesIves/github-pages-deploy-action@v4
53-
with:
54-
BRANCH: gh-pages
55-
FOLDER: _build
56-
CLEAN: true

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/.quarto/
2+
DS_Store
3+
.Rhistory
4+
/.luarc.json
5+
/.quarto/
6+
/*_files
7+
/*_cache
8+
/_freeze
9+
_extensions/
10+
.Rprofile
11+
published-202402-elmasri-optimal.html
12+
published-202402-elmasri-optimal.pdf
13+
_environment
14+
/.micromamba/

0 commit comments

Comments
 (0)