From ad52806a5ed689905a9ce8929ff78398be189990 Mon Sep 17 00:00:00 2001 From: Dario Ghunney Ware Date: Thu, 10 Apr 2025 10:36:08 +0100 Subject: [PATCH 1/2] Mac x86_64 installer fix (#3323) # Description of Changes Added x86_64 distribution to `mac-signed` artifacts --- ## Checklist ### General - [ ] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [ ] I have read the [Stirling-PDF Developer Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md) (if applicable) - [ ] I have read the [How to add new languages to Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md) (if applicable) - [ ] I have performed a self-review of my own code - [ ] My changes generate no new warnings ### Documentation - [ ] I have updated relevant docs on [Stirling-PDF's doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) (if functionality has heavily changed) - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) ### UI Changes (if applicable) - [ ] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR) ### Testing (if applicable) - [ ] I have tested my changes locally. Refer to the [Testing Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md#6-testing) for more details. --------- Co-authored-by: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> --- .github/workflows/multiOSReleases.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/multiOSReleases.yml b/.github/workflows/multiOSReleases.yml index f2c8867de..02f064d60 100644 --- a/.github/workflows/multiOSReleases.yml +++ b/.github/workflows/multiOSReleases.yml @@ -264,6 +264,7 @@ jobs: name: ${{ matrix.platform }}signed path: | ./Stirling-PDF-${{ matrix.platform }}installer.* + ./Stirling-PDF-${{ matrix.platform }}-x86_64-installer.* !cosign.* create-release: From 3365ea4c91abab2cfaa777b46c588b37c60ac64e Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Thu, 10 Apr 2025 10:36:23 +0100 Subject: [PATCH 2/2] Update PR-Demo-Comment.yml (#3326) # Description of Changes Please provide a summary of the changes, including: - What was changed - Why the change was made - Any challenges encountered Closes #(issue_number) --- ## Checklist ### General - [ ] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [ ] I have read the [Stirling-PDF Developer Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md) (if applicable) - [ ] I have read the [How to add new languages to Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md) (if applicable) - [ ] I have performed a self-review of my own code - [ ] My changes generate no new warnings ### Documentation - [ ] I have updated relevant docs on [Stirling-PDF's doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) (if functionality has heavily changed) - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) ### UI Changes (if applicable) - [ ] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR) ### Testing (if applicable) - [ ] I have tested my changes locally. Refer to the [Testing Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md#6-testing) for more details. --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- ...ent.yml => PR-Demo-Comment-with-react.yml} | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) rename .github/workflows/{PR-Demo-Comment.yml => PR-Demo-Comment-with-react.yml} (83%) diff --git a/.github/workflows/PR-Demo-Comment.yml b/.github/workflows/PR-Demo-Comment-with-react.yml similarity index 83% rename from .github/workflows/PR-Demo-Comment.yml rename to .github/workflows/PR-Demo-Comment-with-react.yml index 75244dc91..47efbf82c 100644 --- a/.github/workflows/PR-Demo-Comment.yml +++ b/.github/workflows/PR-Demo-Comment-with-react.yml @@ -34,6 +34,7 @@ jobs: pr_number: ${{ steps.get-pr.outputs.pr_number }} pr_repository: ${{ steps.get-pr-info.outputs.repository }} pr_ref: ${{ steps.get-pr-info.outputs.ref }} + comment_id: ${{ github.event.comment.id }} steps: - name: Harden Runner @@ -73,6 +74,20 @@ jobs: core.setOutput('repository', repository); core.setOutput('ref', pr.head.ref); + - name: Add 'in_progress' reaction to comment + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 + with: + script: | + const { owner, repo } = context.repo; + const commentId = context.payload.comment.id; + + await github.rest.reactions.createForIssueComment({ + owner, + repo, + comment_id: commentId, + content: 'eyes' + }); + deploy-pr: needs: check-comment runs-on: ubuntu-latest @@ -137,6 +152,7 @@ jobs: sudo chmod 600 ../private.key - name: Deploy to VPS + id: deploy run: | # First create the docker-compose content locally cat > docker-compose.yml << 'EOF' @@ -180,6 +196,36 @@ jobs: docker-compose up -d ENDSSH + - name: Add success reaction to comment + if: success() + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 + with: + script: | + const { owner, repo } = context.repo; + const commentId = ${{ needs.check-comment.outputs.comment_id }}; + + await github.rest.reactions.createForIssueComment({ + owner, + repo, + comment_id: commentId, + content: 'rocket' + }); + + - name: Add failure reaction to comment + if: failure() + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 + with: + script: | + const { owner, repo } = context.repo; + const commentId = ${{ needs.check-comment.outputs.comment_id }}; + + await github.rest.reactions.createForIssueComment({ + owner, + repo, + comment_id: commentId, + content: '-1' + }); + - name: Post deployment URL to PR if: success() uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1