Skip to content

Commit

Permalink
ci: pass artifact to release properly
Browse files Browse the repository at this point in the history
  • Loading branch information
youwen5 committed Mar 17, 2024
1 parent beb8d68 commit 7c1e9f3
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,22 @@ jobs:
format: pdf
filename: root.tex

- name: Upload compiled PDF as artifact
uses: actions/upload-artifact@v2
with:
name: compiled-pdf
path: root.pdf

create_release:
needs: compile_latex
runs-on: ubuntu-latest
if: github.event_name == 'push'

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Download compiled PDF artifact
uses: actions/download-artifact@v2
with:
name: compiled-pdf

- name: Get current date
id: date
Expand All @@ -54,6 +62,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./root.pdf
asset_path: root.pdf
asset_name: robot-writeup-2024.pdf
asset_content_type: application/pdf

0 comments on commit 7c1e9f3

Please sign in to comment.