Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
33 changes: 33 additions & 0 deletions .github/workflows/github_backup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Mirror repository to S3
on:
push:
branches:
- master
jobs:
BackupRepoToS3:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: ap-southeast-2
role-to-assume: arn:aws:iam::817632051851:role/oidc-github-actions-mattrglobal-global
role-duration-seconds: 900
role-session-name: GithubActions

- name: Backing up this repo to AWS S3
uses: peter-evans/s3-backup@v1
env:
AWS_REGION: ${{ env.AWS_REGION }}
ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }}
MIRROR_TARGET: mattrglobal-github-backup/pdf-lib
SECRET_ACCESS_KEY: ${{ env.AWS_SECRET_ACCESS_KEY }}
AWS_SESSION_TOKEN: ${{ env.AWS_SESSION_TOKEN }}
with:
args: --overwrite --remove
29 changes: 29 additions & 0 deletions .github/workflows/github_clone_assurance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Mirror repository to mattrassurance org
on:
workflow_dispatch:
push:
branches:
- master
- main

jobs:
MirrorRepoToMATTRAssurance:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: mirror repo
run: |
rm -r .git
rm -r .github
git init --initial-branch=${{ github.ref_name }}
git config --local user.name ${{ secrets.MATTRASSURANCE_GIT_USER_NAME }}
git config --local user.email ${{ secrets.MATTRASSURANCE_GIT_USER_EMAIL }}
git add .
git commit -m "Backing up ${{ github.repository }} to mattrassurance org"
git remote add origin https://${{ secrets.MATTRASSURANCE_GIT_USER_NAME }}:${{ secrets.MATTRASSURANCE_GIT_USER_PAT }}@github.com/mattrassurance/${{ github.event.repository.name }}.git
git push origin ${{ github.ref_name }} --force
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ coverage/
ts3.4/
build/
dist/
cjs/
es/

tsBuildInfo.json
Expand Down
8 changes: 8 additions & 0 deletions cjs/api/Embeddable.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* A PDF entity, like images or fonts, which needs to be embedded into the
* document before saving.
*/
export default interface Embeddable {
embed: () => Promise<void>;
}
//# sourceMappingURL=Embeddable.d.ts.map
1 change: 1 addition & 0 deletions cjs/api/Embeddable.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions cjs/api/Embeddable.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cjs/api/Embeddable.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading