mirror of
https://github.com/wez/wezterm.git
synced 2025-01-08 23:17:36 +03:00
ci: tweak winget pr stuff a bit more
This commit is contained in:
parent
56aa71331e
commit
306da9d448
34
.github/workflows/gen_windows_tag.yml
vendored
34
.github/workflows/gen_windows_tag.yml
vendored
@ -52,23 +52,6 @@ jobs:
|
||||
path: |
|
||||
WezTerm-*.zip
|
||||
WezTerm-*.exe
|
||||
- name: "Checkout winget-pkgs"
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: "wez/winget-pkgs"
|
||||
path: "winget-pkgs"
|
||||
token: "${{ secrets.GH_PAT }}"
|
||||
- name: "Create winget manifest and push to fork"
|
||||
env:
|
||||
GIT_AUTHOR_EMAIL: wez@wezfurlong.org
|
||||
GIT_AUTHOR_NAME: Wez Furlong
|
||||
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: 'gh pr create --fill --body "PR automatically created by release automation in the wezterm repo"'
|
||||
|
||||
upload:
|
||||
runs-on: ubuntu-latest
|
||||
@ -94,3 +77,20 @@ 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@v3
|
||||
with:
|
||||
repository: "wez/winget-pkgs"
|
||||
path: "winget-pkgs"
|
||||
token: "${{ secrets.GH_PAT }}"
|
||||
- name: "Create winget manifest and push to fork"
|
||||
env:
|
||||
GIT_AUTHOR_EMAIL: wez@wezfurlong.org
|
||||
GIT_AUTHOR_NAME: Wez Furlong
|
||||
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"'
|
||||
|
@ -579,7 +579,7 @@ cargo build --all --release""",
|
||||
),
|
||||
RunStep(
|
||||
"Submit PR",
|
||||
'gh pr create --fill --body "PR automatically created by release automation in the wezterm repo"',
|
||||
'cd winget-pkgs && gh pr create --fill --body "PR automatically created by release automation in the wezterm repo"',
|
||||
env={
|
||||
"GITHUB_TOKEN": "${{ secrets.GH_PAT }}",
|
||||
},
|
||||
@ -793,11 +793,10 @@ cargo build --all --release""",
|
||||
steps += self.package(trusted=True)
|
||||
steps += self.upload_artifact()
|
||||
steps += self.update_homebrew_tap()
|
||||
steps += self.create_winget_pr()
|
||||
|
||||
uploader = Job(
|
||||
runs_on="ubuntu-latest",
|
||||
steps=self.checkout(submodules=False) + self.upload_asset_tag(),
|
||||
steps=self.checkout(submodules=False) + self.upload_asset_tag() + self.create_winget_pr()
|
||||
)
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user