Skip to content

Commit

Permalink
test3
Browse files Browse the repository at this point in the history
  • Loading branch information
EETagent committed Feb 2, 2024
1 parent cc45b7e commit e7f64d9
Showing 1 changed file with 38 additions and 29 deletions.
67 changes: 38 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,38 +98,47 @@ jobs:
cd -
cp ${XCBUILD_PATH}/*.zip Artifacts
- name: Generate Sparkle Appcast ✨
# - name: Generate Sparkle Appcast ✨
# run: |
# RELEASE_URL='https://github.com/EETagent/Send/releases/tag/'
# TAG_RELEASE_URL="${RELEASE_URL}${CUR_TAG}"
# SPARKLE_BIN='./build/SourcePackages/artifacts/Sparkle/bin'
# PUBDATE="$(date +"%a, %d %b %Y %T %z")"
# APPCAST=(
# '<?xml version="1.0" standalone="yes"?>'
# '<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">'
# ' <channel>'
# ' <title>Send</title>'
# ' <item>'
# " <title>${VER}</title>"
# " <pubDate>${PUBDATE}</pubDate>"
# ' <description><![CDATA['
# ' <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Primer/20.4.6/primer.min.css"><meta charset="UTF-8"><div class="markdown-body"><h3>The latest updates are available here:</h3><ul>'
# "<a href=\"${TAG_RELEASE_URL}\">${TAG_RELEASE_URL}</a>"
# ' </ul></div>'
# ' ]]>'
# ' </description>'
# ' <sparkle:minimumSystemVersion>10.13</sparkle:minimumSystemVersion>'
# " <enclosure url=\"https://github.com/EETagent/Send/releases/latest/download/Send.dmg\" sparkle:version=\"${VER_BUILD}\" sparkle:shortVersionString=\"${VER}\" type=\"application/octet-stream\" $($SPARKLE_BIN/sign_update -s ${SPARKLE_KEY} ./Artifacts/Send.dmg)/>"
# ' </item>'
# ' </channel>'
# '</rss>'
# )
# for appcast in "${APPCAST[@]}"; do
# echo "${appcast}" >> ./Artifacts/appcast.xml
# done
# shell: zsh {0}
# env:
# SPARKLE_KEY: ${{ secrets.SPARKLE_KEY }}
- name: Update appcast
run: |
RELEASE_URL='https://github.com/EETagent/Send/releases/tag/'
TAG_RELEASE_URL="${RELEASE_URL}${CUR_TAG}"
SPARKLE_BIN='./build/SourcePackages/artifacts/Sparkle/bin'
PUBDATE="$(date +"%a, %d %b %Y %T %z")"
APPCAST=(
'<?xml version="1.0" standalone="yes"?>'
'<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">'
' <channel>'
' <title>Send</title>'
' <item>'
" <title>${VER}</title>"
" <pubDate>${PUBDATE}</pubDate>"
' <description><![CDATA['
' <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Primer/20.4.6/primer.min.css"><meta charset="UTF-8"><div class="markdown-body"><h3>The latest updates are available here:</h3><ul>'
"<a href=\"${TAG_RELEASE_URL}\">${TAG_RELEASE_URL}</a>"
' </ul></div>'
' ]]>'
' </description>'
' <sparkle:minimumSystemVersion>10.13</sparkle:minimumSystemVersion>'
" <enclosure url=\"https://github.com/EETagent/Send/releases/latest/download/Send.dmg\" sparkle:version=\"${VER_BUILD}\" sparkle:shortVersionString=\"${VER}\" type=\"application/octet-stream\" $($SPARKLE_BIN/sign_update -s ${SPARKLE_KEY} ./Artifacts/Send.dmg)/>"
' </item>'
' </channel>'
'</rss>'
)
for appcast in "${APPCAST[@]}"; do
echo "${appcast}" >> ./Artifacts/appcast.xml
done
shell: zsh {0}
env:
SPARKLE_KEY: ${{ secrets.SPARKLE_KEY }}
$SPARKLE_BIN/generate_appcast \
--link https://github.com/EETagent/Send/releases \
--download-url-prefix "https://github.com/EETagent/Send/releases/download/${CUR_TAG}/" \
-o Artifacts/appcast.xml \
Artifacts/
- name: Publish GitHub Release 📂
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit e7f64d9

Please sign in to comment.