Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoBuscicchio authored Dec 15, 2024
1 parent c6f352c commit 06c721b
Showing 1 changed file with 7 additions and 33 deletions.
40 changes: 7 additions & 33 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@latest
uses: actions/checkout@v4

- name: Cache Conda environment
uses: actions/cache@latest
uses: actions/cache@v4
with:
path: |
${{ env.HOME }}/.conda/pkgs/
Expand All @@ -31,7 +31,7 @@ jobs:
conda-${{ runner.os }}-
- name: Set up conda
uses: conda-incubator/setup-miniconda@latest
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: buildcv
environment-file: environment.yml
Expand Down Expand Up @@ -82,37 +82,11 @@ jobs:
mv preamble.tex CV.tex metricspapers.tex parsepapers.tex parsetalks.tex publist.tex talklist.tex CVshort.tex pdfs/
- name: Upload artifacts
uses: actions/upload-artifact@latest
uses: actions/upload-artifact@v4
with:
name: artifacts
path: pdfs/

# release:
# needs: [build]
# runs-on: ubuntu-latest
# steps:
#
# - name: Checkout
# uses: actions/checkout@v2
#
# - name: Download artifacts
# uses: actions/download-artifact@v3
# with:
# path: pdfs

# - name: Create Release
# id: create_release
# uses: softprops/action-gh-release@v1
# with:
# files: |
# pdfs/artifacts/CV.pdf
# pdfs/artifacts/CVshort.pdf
# pdfs/artifacts/publist.pdf
# pdfs/artifacts/talklist.pdf
# token: ${{ secrets.GITHUB_TOKEN }}
# name: $(date +'%Y_%m_%d_%H_%M_%S')
# tag_name: $(date +'%Y_%m_%d_%H_%M_%S')

deploy:
# Edit here if compiling multiple papers
needs: [build]
Expand All @@ -121,18 +95,18 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@latest
uses: actions/checkout@v4

- name: Download artifacts
uses: actions/download-artifact@latest
uses: actions/download-artifact@v4
with:
path: pdfs

- name: move
run: mkdir -p github_deploy && mv pdfs/*/* github_deploy

- name: deploy on orphan branch
uses: peaceiris/actions-gh-pages@latest
uses: peaceiris/actions-gh-pages@v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./github_deploy
Expand Down

0 comments on commit 06c721b

Please sign in to comment.