-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from mjpc13/implement-version-diff
Produces a pdf showing the difference between current release and the last version
- Loading branch information
Showing
2 changed files
with
33 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,26 +19,38 @@ jobs: | |
- name: Get current time | ||
uses: 1466587594/get-current-time@v2 | ||
id: current-time | ||
|
||
- uses: robinraju/[email protected] | ||
with: | ||
latest: true | ||
fileName: "main.pdf" | ||
tarBall: false | ||
zipBall: false | ||
out-file-path: "previous" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: hidakatsuya/setup-diff-pdf@v1 | ||
if: always() | ||
with: | ||
diff-pdf-version: '0.5' | ||
- name: Setup headless display | ||
uses: pyvista/setup-headless-display-action@v1 | ||
|
||
- name: Compile the differences between versions | ||
run: export NO_AT_BRIDGE=1 && diff-pdf -m --output-diff=diff.pdf main.pdf previous/main.pdf | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
if: always() | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
asset_path: ./main.pdf | ||
asset_name: main.pdf | ||
asset_content_type: application/pdf | ||
name: Release ${{ github.ref }} | ||
generate_release_notes: true | ||
files: | | ||
main.pdf | ||
diff.pdf | ||
- name: Generate dummy page | ||
run: | | ||
mkdir public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters