Skip to content

Commit b334074

Browse files
authored
feat(ci): add GPG signing to format workflow (#155)
1 parent ab818e0 commit b334074

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/format.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,20 @@ jobs:
2626
- name: Format
2727
run: pnpm run format
2828

29+
- name: "Import GPG key"
30+
id: import-gpg
31+
uses: crazy-max/ghaction-import-gpg@v6
32+
with:
33+
gpg_private_key: ${{ secrets.BOT_GPG_PRIVATE_KEY }}
34+
passphrase: ${{ secrets.BOT_GPG_PASSPHRASE }}
35+
git_user_signingkey: true
36+
git_commit_gpgsign: true
37+
2938
- name: Commit and Push
3039
uses: stefanzweifel/git-auto-commit-action@v6
3140
with:
3241
# TODO: GPG sign: https://github.com/stefanzweifel/git-auto-commit-action?tab=readme-ov-file#signing-commits
3342
commit_message: "[skip ci] style: format code with prettier"
43+
commit_author: "${{ steps.import-gpg.outputs.name }} <${{ steps.import-gpg.outputs.email }}>"
44+
commit_user_name: ${{ steps.import-gpg.outputs.name }}
45+
commit_user_email: ${{ steps.import-gpg.outputs.email }}

src/hooks/useCDN.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ export const useCDN = () => {
3333

3434
const ruffleJSPath = () => {
3535
return import.meta.env.VITE_LITE === "true"
36-
? npm(
37-
packageJson.name,
38-
packageJson.version,
39-
"dist/static/ruffle/ruffle.js",
40-
)
36+
? npm(packageJson.name, packageJson.version, "dist/static/ruffle/ruffle.js")
4137
: `${static_path}/ruffle/ruffle.js`
4238
}
4339

0 commit comments

Comments
 (0)