- Notifications
You must be signed in to change notification settings - Fork3
ci: update appcast on builds#174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
+41 −4
Merged
Changes fromall commits
Commits
Show all changes
11 commits Select commitHold shift + click to select a range
c194b96
ci: update appcast on builds
ethanndickson02b3b7d
fixup
ethanndickson820f63b
gcp auth perms
ethanndickson0a69ec6
fix nix
ethanndickson2c79177
macos 14...
ethanndicksond6c6718
retry
ethanndickson9ce6ae7
trial
ethanndicksonf235bc6
trial
ethanndickson6cd6de7
trial
ethanndicksonc0c28ad
finish
ethanndicksonb9822b8
merge 3 steps
ethanndicksonFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
29 changes: 29 additions & 0 deletions.github/workflows/release.yml
This file contains hidden or 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 |
---|---|---|
@@ -30,6 +30,8 @@ jobs: | ||
permissions: | ||
# To upload assets to the release | ||
contents: write | ||
# for GCP auth | ||
id-token: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
@@ -46,6 +48,17 @@ jobs: | ||
- name: Setup Nix | ||
uses: ./.github/actions/nix-devshell | ||
- name: Authenticate to Google Cloud | ||
id: gcloud_auth | ||
uses: google-github-actions/auth@71f986410dfbc7added4569d411d040a91dc6935 # v2.1.8 | ||
with: | ||
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_ID_PROVIDER }} | ||
service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }} | ||
token_format: "access_token" | ||
- name: Setup GCloud SDK | ||
uses: google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a # v2.1.4 | ||
- name: Build | ||
env: | ||
APPLE_DEVELOPER_ID_PKCS12_B64: ${{ secrets.APPLE_DEVELOPER_ID_PKCS12_B64 }} | ||
@@ -76,6 +89,22 @@ jobs: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RELEASE_TAG: ${{ github.event_name == 'release' && github.event.release.tag_name || 'preview' }} | ||
- name: Update Appcast | ||
if: ${{ !inputs.dryrun }} | ||
run: | | ||
gsutil cp "gs://releases.coder.com/coder-desktop/mac/appcast.xml" ./oldappcast.xml | ||
pushd scripts/update-appcast | ||
swift run update-appcast \ | ||
-i ../../oldappcast.xml \ | ||
-s "$out"/Coder-Desktop.pkg.sig \ | ||
-v "$(../version.sh)" \ | ||
-o ../../appcast.xml \ | ||
-d "$VERSION_DESCRIPTION" | ||
popd | ||
gsutil -h "Cache-Control:no-cache,max-age=0" cp ./appcast.xml "gs://releases.coder.com/coder-desktop/mac/appcast.xml" | ||
env: | ||
VERSION_DESCRIPTION: ${{ github.event_name == 'release' && github.event.release.body || '' }} | ||
ethanndickson marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
update-cask: | ||
name: Update homebrew-coder cask | ||
runs-on: ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}} | ||
8 changes: 8 additions & 0 deletionsflake.nix
This file contains hidden or 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
2 changes: 1 addition & 1 deletionscripts/update-appcast/Package.swift
This file contains hidden or 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
6 changes: 3 additions & 3 deletionsscripts/update-appcast/Sources/main.swift
This file contains hidden or 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
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.