forked from wez/wezterm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI tweaks to deal with repo being a fork.
- Disable parts of [tag] actions that can (and should) only be run by wez. - Sign MacOS app with adhoc signature when secrets unavailable.
- Loading branch information
1 parent
a2a5f1d
commit be30a84
Showing
8 changed files
with
32 additions
and
100 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
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
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 |
---|---|---|
|
@@ -136,8 +136,3 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
shell: bash | ||
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *.sha256" | ||
- name: "Upload to gemfury" | ||
env: | ||
FURY_TOKEN: ${{ secrets.FURY_TOKEN }} | ||
shell: bash | ||
run: "for f in wezterm*.deb ; do curl -i -F package=@$f https://[email protected]/wez/ ; done" |
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 |
---|---|---|
|
@@ -103,11 +103,6 @@ jobs: | |
run: "git config --global --add safe.directory /__w/wezterm/wezterm" | ||
- name: "checkout repo" | ||
uses: actions/checkout@v4 | ||
- name: "Upload to gemfury" | ||
env: | ||
FURY_TOKEN: ${{ secrets.FURY_TOKEN }} | ||
shell: bash | ||
run: "for f in wezterm*.deb ; do curl -i -F package=@$f https://[email protected]/wez/ ; done" | ||
- name: "Download artifact" | ||
uses: actions/download-artifact@v4 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -103,23 +103,3 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
shell: bash | ||
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) WezTerm-*.zip WezTerm-*.exe *.sha256" | ||
- name: "Checkout winget-pkgs" | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: "wez/winget-pkgs" | ||
path: "winget-pkgs" | ||
token: "${{ secrets.GH_PAT }}" | ||
- name: "Setup email for winget repo" | ||
shell: bash | ||
run: "cd winget-pkgs && git config user.email [email protected]" | ||
- name: "Setup name for winget repo" | ||
shell: bash | ||
run: "cd winget-pkgs && git config user.name 'Wez Furlong'" | ||
- name: "Create winget manifest and push to fork" | ||
shell: bash | ||
run: "bash ci/make-winget-pr.sh winget-pkgs WezTerm-*.exe" | ||
- name: "Submit PR" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | ||
shell: bash | ||
run: 'cd winget-pkgs && gh pr create --fill --body "PR automatically created by release automation in the wezterm repo"' |
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
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
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 |
---|---|---|
|
@@ -626,14 +626,14 @@ def upload_asset_nightly(self): | |
patterns.append("*.sha256") | ||
glob = " ".join(patterns) | ||
|
||
if self.container == "ubuntu:22.04": | ||
steps += [ | ||
RunStep( | ||
"Upload to gemfury", | ||
f"for f in wezterm*.deb ; do curl -i -F package=@$f https://[email protected]/wez/ ; done", | ||
env={"FURY_TOKEN": "${{ secrets.FURY_TOKEN }}"}, | ||
), | ||
] | ||
# if self.container == "ubuntu:22.04": | ||
# steps += [ | ||
# RunStep( | ||
# "Upload to gemfury", | ||
# f"for f in wezterm*.deb ; do curl -i -F package=@$f https://[email protected]/wez/ ; done", | ||
# env={"FURY_TOKEN": "${{ secrets.FURY_TOKEN }}"}, | ||
# ), | ||
# ] | ||
|
||
return [ | ||
ActionStep( | ||
|
@@ -661,14 +661,14 @@ def upload_asset_tag(self): | |
patterns.append("*.sha256") | ||
glob = " ".join(patterns) | ||
|
||
if self.container == "ubuntu:22.04": | ||
steps += [ | ||
RunStep( | ||
"Upload to gemfury", | ||
f"for f in wezterm*.deb ; do curl -i -F package=@$f https://[email protected]/wez/ ; done", | ||
env={"FURY_TOKEN": "${{ secrets.FURY_TOKEN }}"}, | ||
), | ||
] | ||
# if self.container == "ubuntu:22.04": | ||
# steps += [ | ||
# RunStep( | ||
# "Upload to gemfury", | ||
# f"for f in wezterm*.deb ; do curl -i -F package=@$f https://[email protected]/wez/ ; done", | ||
# env={"FURY_TOKEN": "${{ secrets.FURY_TOKEN }}"}, | ||
# ), | ||
# ] | ||
|
||
return steps + [ | ||
ActionStep( | ||
|
@@ -974,14 +974,14 @@ def tag(self): | |
steps += self.test_all() | ||
steps += self.package(trusted=True) | ||
steps += self.upload_artifact() | ||
steps += self.update_homebrew_tap() | ||
# steps += self.update_homebrew_tap() | ||
|
||
uploader = Job( | ||
runs_on="ubuntu-latest", | ||
steps=self.checkout(submodules=False) | ||
+ self.upload_asset_tag() | ||
+ self.create_winget_pr() | ||
+ self.create_flathub_pr(), | ||
# + self.create_winget_pr() | ||
# + self.create_flathub_pr(), | ||
) | ||
|
||
return ( | ||
|