Skip to content

Commit

Permalink
deploy github action update
Browse files Browse the repository at this point in the history
  • Loading branch information
kolosovpetro committed Jul 16, 2023
1 parent 4a48da9 commit e51905b
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions .github/workflows/build-and-deploy-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,55 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.x'

- name: Determine Version
uses: gittools/actions/gitversion/[email protected]

- name: Print SemVer
run: |
echo ${{ env.GITVERSION_SEMVER }}
echo ${{ env.GitVersion_InformationalVersion }}
echo ${{ env.GitVersion_EscapedBranchName }}
- name: Update version.tex
shell: bash
run: |
newVersion=${{ env.GitVersion_InformationalVersion }}
sed -i "s|Local-0.1.0|$newVersion|" "src/sections/version.tex"
- name: Build PDF
uses: xu-cheng/latex-action@v2
with:
root_file: "${{ env.FILE_NAME }}.tex"
working_directory: src

- name: List src
run: |
ls -lsa src
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: "drop"
path: "src/${{ env.FILE_NAME }}.pdf"
name: "${{ env.FILE_NAME }}-${{ env.GitVersion_InformationalVersion }}"
path: |
src/${{ env.FILE_NAME }}.tex
src/${{ env.FILE_NAME }}.bbl
src/${{ env.FILE_NAME }}.bib
src/sections
- name: Upload artifacts PDF
uses: actions/upload-artifact@v3
with:
name: "${{ env.FILE_NAME }}-PDF-${{ env.GitVersion_InformationalVersion }}"
path: |
src/${{ env.FILE_NAME }}.pdf
- name: Clone repository and add document
continue-on-error: true
Expand Down

0 comments on commit e51905b

Please sign in to comment.