55 branches : [main]
66
77env :
8+ # Opting into Node.js 24 as per GitHub's 2025 deprecation roadmap
89 FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 : true
910
1011jobs :
2930 # Ensure we are reading the correct path
3031 file_path = 'paper/paper.md'
3132 if not os.path.exists(file_path):
32- # Fallback for different repo structures
3333 file_path = 'paper.md'
3434
3535 with open(file_path, 'r') as f:
8080 email = corres[0]['email']
8181 lines.append(rf'\small $^*$Corresponding author: \href{{mailto:{email}}}{{{email}}}\\[0.2em]')
8282
83- # Zenodo DOI Integration
8483 lines.append(r'\small DOI: \href{https://doi.org/10.5281/zenodo.18377216}{10.5281/zenodo.18377216}\\[0.2em]')
8584 lines.append(r'\small ' + str(fm.get('date','')))
8685 lines.append(r'\end{center}')
@@ -115,7 +114,7 @@ jobs:
115114 \pagestyle{fancy}
116115 \fancyhf{}
117116 \fancyhead[L]{\small \textbf{\textcolor{gray}{PREPRINT -- NOT PEER REVIEWED}}}
118- \fancyhead[R]{\small \textit{PICA: Advanced Transport Automation}}
117+ \fancyhead[R]{\small \textit{PICA: Python-based Instrument Control and Automation}}
119118 \fancyfoot[C]{\thepage}
120119 \renewcommand{\headrulewidth}{0.4pt}
121120
@@ -124,12 +123,10 @@ jobs:
124123
125124 - name : Generate Publication-Ready PDF
126125 run : |
127- # Detect directory
128126 TARGET_DIR="paper"
129127 if [ ! -d "$TARGET_DIR" ]; then TARGET_DIR="."; fi
130128 cd $TARGET_DIR
131129
132- # Dynamically filter out the AI usage disclosure section into a temporary file
133130 awk '/^# AI usage disclosure/{skip=1} /^# / && !/^# AI usage disclosure/{skip=0} !skip' paper.md > paper_cleaned.md
134131
135132 pandoc paper_cleaned.md -o paper.pdf \
@@ -141,13 +138,12 @@ jobs:
141138 --include-before-body=/tmp/title_block.tex \
142139 --variable=link-citations=true
143140
144- # Clean up the temporary file
145141 rm paper_cleaned.md
146142
147143 - name : Upload Artifact
148- uses : actions/upload-artifact@v4
144+ uses : actions/upload-artifact@v6
149145 with :
150146 name : professional-preprint
151147 path : |
152- paper/paper.pdf
153- paper.pdf
148+ paper/paper.pdf
149+ paper.pdf
0 commit comments