Skip to content

Commit d01c437

Browse files
author
SojiroNishimura
committed
Merge release/2025.10.27T01.04.41 into master
2 parents 0895391 + 0d0ad57 commit d01c437

File tree

14 files changed

+836
-240
lines changed

14 files changed

+836
-240
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ commands:
4848
key: v2-gems-{{ checksum "Gemfile.lock" }}
4949
- run:
5050
name: Bundle install
51-
command: bundle check --path=vendor/bundle || bundle install --path=vendor/bundle
51+
command: bundle config set --local path 'vendor/bundle' && (bundle check || bundle install)
5252
environment:
5353
BUNDLE_JOBS: 4
5454
BUNDLE_RETRY: 3
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>KARTE iOS SDK - Release Notes Feed</title>
7+
<style>
8+
body {
9+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
10+
max-width: 800px;
11+
margin: 0 auto;
12+
padding: 40px 20px;
13+
line-height: 1.6;
14+
color: #333;
15+
}
16+
h1 {
17+
color: #2c3e50;
18+
border-bottom: 2px solid #3498db;
19+
padding-bottom: 10px;
20+
}
21+
.feed-info {
22+
background-color: #f8f9fa;
23+
border-left: 4px solid #3498db;
24+
padding: 15px;
25+
margin: 20px 0;
26+
}
27+
.feed-url {
28+
word-break: break-all;
29+
background-color: #fff;
30+
padding: 10px;
31+
border-radius: 4px;
32+
font-family: monospace;
33+
font-size: 14px;
34+
}
35+
a {
36+
color: #3498db;
37+
text-decoration: none;
38+
}
39+
a:hover {
40+
text-decoration: underline;
41+
}
42+
.instructions {
43+
margin-top: 30px;
44+
}
45+
.instructions h2 {
46+
color: #2c3e50;
47+
font-size: 1.2em;
48+
}
49+
.instructions ol {
50+
padding-left: 20px;
51+
}
52+
.instructions li {
53+
margin: 10px 0;
54+
}
55+
</style>
56+
</head>
57+
<body>
58+
<h1>KARTE iOS SDK Release Notes</h1>
59+
60+
<div class="feed-info">
61+
<p><strong>Atom Feed URL:</strong></p>
62+
<div class="feed-url">{{FEED_URL}}</div>
63+
</div>
64+
65+
<div class="instructions">
66+
<h2>How to Subscribe</h2>
67+
<ol>
68+
<li>Copy the Atom feed URL above</li>
69+
<li>Open your RSS reader application</li>
70+
<li>Add a new feed subscription using the URL</li>
71+
<li>You'll receive notifications when new iOS SDK versions are released</li>
72+
</ol>
73+
</div>
74+
75+
<div class="instructions">
76+
<h2>About</h2>
77+
<p>
78+
This feed provides release notes for the KARTE iOS SDK.
79+
Subscribe to stay updated on the latest features, improvements, and bug fixes.
80+
</p>
81+
<p>
82+
For more information, visit the
83+
<a href="https://developers.karte.io/docs/release-notes-ios-sdk-v2#/" target="_blank">
84+
official release notes documentation
85+
</a>.
86+
</p>
87+
</div>
88+
</body>
89+
</html>
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Deploy release feed to Pages
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
17+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: false
21+
22+
jobs:
23+
deploy:
24+
# For production (plaidev/karte-ios-sdk):
25+
if: github.repository == 'plaidev/karte-ios-sdk'
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
runs-on: macos-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
33+
34+
- name: Check commit message
35+
id: check_message
36+
run: |
37+
MESSAGE=$(git log -1 --pretty=%B)
38+
if echo "$MESSAGE" | grep -q "Merge release"; then
39+
echo "should_deploy=true" >> $GITHUB_OUTPUT
40+
echo "✅ Commit message contains 'Merge release' - proceeding with deployment"
41+
else
42+
echo "should_deploy=false" >> $GITHUB_OUTPUT
43+
echo "⏭️ Commit message does not contain 'Merge release' - skipping deployment"
44+
fi
45+
46+
- name: Generate Atom Feed
47+
if: steps.check_message.outputs.should_deploy == 'true'
48+
run: |
49+
mkdir -p docs
50+
LINK_URL="https://developers.karte.io/docs/release-notes-ios-sdk-v2#/"
51+
FEED_URL="https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/releases.atom"
52+
53+
ruby scripts/generate_feed.rb CHANGELOG.md "${FEED_URL}" "${LINK_URL}" > docs/releases.atom
54+
55+
echo "Generated Atom feed from CHANGELOG with link to: ${LINK_URL}"
56+
- name: Generate index.html
57+
if: steps.check_message.outputs.should_deploy == 'true'
58+
run: |
59+
FEED_URL="https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/releases.atom"
60+
sed "s|{{FEED_URL}}|${FEED_URL}|g" .github/PAGES_TEMPLATE/index.html.template > docs/index.html
61+
echo "Generated index.html with feed URL: ${FEED_URL}"
62+
63+
- name: Setup Pages
64+
if: steps.check_message.outputs.should_deploy == 'true'
65+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
66+
with:
67+
enablement: true
68+
69+
- name: Upload artifact
70+
if: steps.check_message.outputs.should_deploy == 'true'
71+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
72+
with:
73+
# Upload docs directory containing releases.atom and index.html
74+
path: 'docs'
75+
76+
- name: Deploy to GitHub Pages
77+
if: steps.check_message.outputs.should_deploy == 'true'
78+
id: deployment
79+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

.spm-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.27.0
1+
2.28.0

0 commit comments

Comments
 (0)