Skip to content

Commit 8c25e5a

Browse files
committed
docs: Fix Related Packages and release workflow for compliance
- Update Related Packages to use exact GitHub repo descriptions - Fix release.yml to use correct package name (swift-domain-type) - Fix target name in documentation generation (Domain not EmailAddress) - Fix documentation URLs and redirects
1 parent c38491d commit 8c25e5a

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
7373
# Create archives of the built libraries
7474
cd .build
75-
tar -czf swift-emailaddress-type-macos.tar.gz \
75+
tar -czf swift-domain-type-macos.tar.gz \
7676
arm64-apple-macosx/release/*.swiftmodule \
7777
x86_64-apple-macosx/release/*.swiftmodule \
7878
2>/dev/null || true
@@ -84,22 +84,22 @@ jobs:
8484
swift package \
8585
--allow-writing-to-directory ./docs \
8686
generate-documentation \
87-
--target EmailAddress \
87+
--target Domain \
8888
--output-path ./docs \
8989
--transform-for-static-hosting \
90-
--hosting-base-path swift-emailaddress-type
90+
--hosting-base-path swift-domain-type
9191
9292
cat > ./docs/index.html << 'EOF'
9393
<!DOCTYPE html>
9494
<html>
9595
<head>
9696
<meta charset="utf-8">
97-
<title>Redirecting to swift-emailaddress-type documentation</title>
98-
<meta http-equiv="refresh" content="0; url=./documentation/emailaddress/">
99-
<link rel="canonical" href="./documentation/emailaddress/">
97+
<title>Redirecting to swift-domain-type documentation</title>
98+
<meta http-equiv="refresh" content="0; url=./documentation/domain/">
99+
<link rel="canonical" href="./documentation/domain/">
100100
</head>
101101
<body>
102-
<p>Redirecting to <a href="./documentation/emailaddress/">swift-emailaddress-type documentation</a>...</p>
102+
<p>Redirecting to <a href="./documentation/domain/">swift-domain-type documentation</a>...</p>
103103
</body>
104104
</html>
105105
EOF
@@ -113,7 +113,7 @@ jobs:
113113
uses: softprops/action-gh-release@v2
114114
with:
115115
files: |
116-
.build/swift-emailaddress-type-macos.tar.gz
116+
.build/swift-domain-type-macos.tar.gz
117117
documentation.zip
118118
env:
119119
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -142,23 +142,23 @@ jobs:
142142
swift package \
143143
--allow-writing-to-directory ./docs \
144144
generate-documentation \
145-
--target EmailAddress \
145+
--target Domain \
146146
--output-path ./docs \
147147
--transform-for-static-hosting \
148-
--hosting-base-path swift-emailaddress-type
148+
--hosting-base-path swift-domain-type
149149
150150
# Create root index.html redirect
151151
cat > ./docs/index.html << 'EOF'
152152
<!DOCTYPE html>
153153
<html>
154154
<head>
155155
<meta charset="utf-8">
156-
<title>Redirecting to swift-emailaddress-type documentation</title>
157-
<meta http-equiv="refresh" content="0; url=./documentation/emailaddress/">
158-
<link rel="canonical" href="./documentation/emailaddress/">
156+
<title>Redirecting to swift-domain-type documentation</title>
157+
<meta http-equiv="refresh" content="0; url=./documentation/domain/">
158+
<link rel="canonical" href="./documentation/domain/">
159159
</head>
160160
<body>
161-
<p>Redirecting to <a href="./documentation/emailaddress/">swift-emailaddress-type documentation</a>...</p>
161+
<p>Redirecting to <a href="./documentation/domain/">swift-domain-type documentation</a>...</p>
162162
</body>
163163
</html>
164164
EOF

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,10 @@ do {
221221

222222
## Related Packages
223223

224-
- [swift-rfc-1035](https://github.com/swift-web-standards/swift-rfc-1035): DNS domain name types (RFC 1035)
225-
- [swift-rfc-1123](https://github.com/swift-web-standards/swift-rfc-1123): Internet host name types (RFC 1123)
226-
- [swift-rfc-5321](https://github.com/swift-web-standards/swift-rfc-5321): SMTP domain types (RFC 5321)
227-
- [swift-emailaddress-type](https://github.com/coenttb/swift-emailaddress-type): Type-safe email address validation using this domain type
224+
- [swift-rfc-1035](https://github.com/swift-web-standards/swift-rfc-1035): Swift implementation of RFC 1035: Domain Names - Implementation and Specification
225+
- [swift-rfc-1123](https://github.com/swift-web-standards/swift-rfc-1123): Swift implementation of RFC 1123: Requirements for Internet Hosts - Application and Support
226+
- [swift-rfc-5321](https://github.com/swift-web-standards/swift-rfc-5321): Swift implementation of RFC 5321: Simple Mail Transfer Protocol
227+
- [swift-emailaddress-type](https://github.com/coenttb/swift-emailaddress-type): A Swift package with a type-safe EmailAddress model
228228

229229
## Requirements
230230

0 commit comments

Comments
 (0)