Skip to content

Commit

Permalink
Add date to PDFs
Browse files Browse the repository at this point in the history
  • Loading branch information
francescoo22 committed Jun 18, 2024
1 parent 136ab55 commit 75354eb
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,22 @@ jobs:
src/annotation-system.typ
src/CFG-based-system.typ
- name: Get current date
id: date
run: echo "DATE=$(date +%Y-%m-%d-%H:%M | tr ':' '_')" >> $GITHUB_ENV

- name: Add date to PDF
run: |
for file in *.pdf; do
mv "$file" "$(basename "$file" .pdf)-${{ env.DATE }}.pdf"
done
- name: Upload PDF file
uses: actions/upload-artifact@v4
with:
name: PDF
name: Kt-Uniqueness-System-${{ env.DATE }}
path: "src/*.pdf"

- name: Get current date
id: date
run: echo "DATE=$(date +%Y-%m-%d-%H:%M)" >> $GITHUB_ENV

- name: Release
uses: softprops/action-gh-release@v1
if: github.ref_type == 'tag'
Expand Down

0 comments on commit 75354eb

Please sign in to comment.