Skip to content

Commit

Permalink
minor syntax fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
prudhomm committed Jul 17, 2024
1 parent b3861eb commit 4a37115
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/latex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
id: repo_name
run: |
prefix=$(echo "${{ github.repository }}" | cut -d'/' -f2)
echo "prefix=$prefix" >> GITHUB_OUTPUT
echo "prefix=$prefix" >> "$GITHUB_OUTPUT"
- name: Upload PDF
uses: actions/upload-artifact@v4
with:
Expand All @@ -38,26 +38,26 @@ jobs:
runs-on: self-ubuntu-24.04
needs: build_latex
env:
veersionedpdf: ${{ needs.build_latex.outputs.prefix }}.pdf
versionedpdf: ${{ needs.build_latex.outputs.prefix }}.pdf
steps:
- name: Download PDF
uses: actions/download-artifact@v4
with:
name: ${{ needs.build_latex.outputs.prefix }}.pdf
name: ${{ env.versionedpdf }}

release:
runs-on: ubuntu-latest
needs: build_latex
if: startsWith(github.ref ,'refs/tags/v')
env:
veersionedpdf: ${{ needs.build_latex.outputs.prefix }}-v${{ github.ref_name }}.pdf
versionedpdf: ${{ needs.build_latex.outputs.prefix }}-v${{ github.ref_name }}.pdf
steps:
- name: Download PDF
uses: actions/download-artifact@v4
with:
name: ${{ needs.build_latex.outputs.prefix }}.pdf
- name: Rename to add version
run: mv ${{ github.repository }}.pdf ${{ env.veersionedpdf}}
run: mv ${{ github.repository }}.pdf ${{ env.versionedpdf}}
- name: Create Release

id: create_release
Expand All @@ -70,4 +70,4 @@ jobs:
tag_name: ${{ github.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
files: |
${{ env.veersionedpdf }}
${{ env.versionedpdf }}

0 comments on commit 4a37115

Please sign in to comment.