Skip to content

Commit

Permalink
Modify action to create a PDF on every release to count downloads.
Browse files Browse the repository at this point in the history
  • Loading branch information
josueneo committed Jun 27, 2023
1 parent 2930455 commit 1670dbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publish PDF
on:
push:
branches: ["main"]
release:
types: ["published"]
jobs:
publish:
name: publish
Expand All @@ -23,7 +23,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
asset_name: Sylabs_Singularity101.pdf
tag: "PDF"
#tag: ${{ github.ref }}
#tag: "PDF"
tag: ${{ github.ref }}
overwrite: true
file: _build/pdf/book.pdf
2 changes: 1 addition & 1 deletion intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This tutorial:
If you wish to improve the contents of this course, feel free to share your
feedback to [email protected]

For your convenience, this course is also available in [PDF format](https://github.com/sylabs/singularity101/releases/download/PDF/Sylabs_Singularity101.pdf).
For your convenience, this course is also available in [PDF format](https://github.com/sylabs/singularity101/releases/).

## Table of Contents

Expand Down

0 comments on commit 1670dbd

Please sign in to comment.