Skip to content

Commit f758fa1

Browse files
committed
up workflow
make the tarball and artifact consistent use the verified artifact content as asset #1
1 parent e19bea3 commit f758fa1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/latex.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ jobs:
7272
- name: List Artifact
7373
run: ls -R ${{ github.workspace }}
7474

75+
- name: Archive Article
76+
run: |
77+
temp_dir=$(mktemp -d)
78+
tar -czvf "${temp_dir}/${{ steps.repo_name.outputs.prefixwithref }}.tar.gz" -C artifact ./
79+
mv "${temp_dir}/${{ steps.repo_name.outputs.prefixwithref }}.tar.gz" ./
80+
rm -rf "$temp_dir"
81+
7582
- name: Check compilation of LaTeX document from artifact
7683
uses: xu-cheng/latex-action@v3
7784
with:
@@ -93,4 +100,4 @@ jobs:
93100
token: ${{ secrets.GITHUB_TOKEN }}
94101
files: |
95102
${{ steps.repo_name.outputs.pdf }}
96-
${{ github.workspace }}/artifact/${{ steps.repo_name.outputs.prefixwithref }}.tar.gz
103+
${{ steps.repo_name.outputs.prefixwithref }}.tar.gz

0 commit comments

Comments
 (0)