Merge branch 'main' into 3319-bug-cosmetic---design-of-languages-selector

This commit is contained in:
Anthony Stirling 2025-04-10 10:36:33 +01:00 committed by GitHub
commit aac856c83b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 47 additions and 0 deletions

View File

@ -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

View File

@ -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: