forked from CoelacanthusHex/WKD
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
76 additions
and
45 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: "Update" | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: DeterminateSystems/nix-installer-action@main | ||
- uses: DeterminateSystems/magic-nix-cache-action@main | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
show-progress: false | ||
|
||
- name: Setup Git | ||
run: | | ||
git config --global user.name "$GITHUB_ACTOR" | ||
git config --global user.email "[email protected]" | ||
git show -s | ||
- name: Update OpenPGP | ||
run: | | ||
make | ||
- name: Commit change | ||
continue-on-error: true | ||
run: | | ||
set +e | ||
git add . | ||
git status | ||
git commit -m "openpgp: update at $(date +'%Y-%m-%dT%H:%M:%S')" | ||
git push |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#! /usr/bin/env nix-shell | ||
#! nix-shell -i python3 -p "python3.withPackages (ps: with ps; [ ])" -p gnupg | ||
|
||
import sys | ||
import json | ||
import os | ||
|
||
if __name__ == "__main__": | ||
with open(sys.argv[1]) as f: | ||
data = json.load(f) | ||
print(data) | ||
for key, value in data.items(): | ||
for fingerprint in value: | ||
os.system(f"gpg --recv-keys {fingerprint}") | ||
os.system(f"pwd") | ||
os.system(f"gpg --list-options show-only-fpr-mbox -k {fingerprint} | gpg-wks-client -v --install-key") |
Binary file removed
BIN
-922 Bytes
.well-known/openpgpkey/aosc.io/hu/6wtzep7o6y4bd6o11t9e9a4a1emuz4o7
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-915 Bytes
.well-known/openpgpkey/coelacanthus.moe/hu/yoshewjxwxj3dtezbu34waxgwahxoo4n
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-932 Bytes
.well-known/openpgpkey/gmail.com/hu/c8qotknqrqdr8hjc1mrkreibakfwd1bs
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-921 Bytes
.well-known/openpgpkey/outlook.com/hu/6wtzep7o6y4bd6o11t9e9a4a1emuz4o7
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
openpgpkey.coelacanthus.moe | ||
openpgpkey.project-trans.org |
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
MAKE = make | ||
RM = rm -rf | ||
all: clean index.html generate-WKD | ||
|
||
.PHONY: generate-WKD | ||
generate-WKD: | ||
$(MAKE) -C .well-known generate-WKD | ||
mkdir -p ./.well-known/openpgpkey | ||
cd ./.well-known && ./make.py ../staffs.json | ||
|
||
index.html: index.md | ||
pandoc -c style.css --self-contained index.md -o index.html --to=html5 --metadata title="Web Key Directory of Coelacanthus" -V lang=en-US | ||
nix run nixpkgs#pandoc -- -c style.css --embed-resources --standalone index.md -o index.html --to=html5 --metadata title="Web Key Directory of Project Trans" -V lang=en-US | ||
|
||
.PHONY: clean | ||
clean: | ||
$(RM) index.html | ||
rm -rf index.html | ||
rm -rf ./.well-known/openpgpkey |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"CoelacanthusHex": [ | ||
"892ebc7dc392dff9c9c03f1d15f4180e73787863" | ||
], | ||
"Cryolitia": [ | ||
"1c3c6547538d7152310c0eea84dd0c0130a54df7" | ||
], | ||
"saeziae": [ | ||
"cedba39e576bc6c21b71a64825e82bbea32bd476" | ||
] | ||
} |