1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-22 04:56:12 +03:00

ci: urgh, try another way

This commit is contained in:
Wez Furlong 2022-01-01 13:33:40 -07:00
parent e11b9460ef
commit 7edc5b5ab0
14 changed files with 27 additions and 49 deletions

View File

@ -83,12 +83,10 @@ jobs:
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh $TAG_NAME"
run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $TAG_NAME wezterm-*.rpm"
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm"

View File

@ -85,12 +85,10 @@ jobs:
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh $TAG_NAME"
run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $TAG_NAME wezterm-*.deb wezterm-*.xz"
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz"

View File

@ -85,12 +85,10 @@ jobs:
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh $TAG_NAME"
run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $TAG_NAME wezterm-*.deb wezterm-*.xz"
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz"

View File

@ -99,12 +99,10 @@ jobs:
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh $TAG_NAME"
run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $TAG_NAME wezterm-*.deb wezterm-*.xz"
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz"

View File

@ -80,12 +80,10 @@ jobs:
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh $TAG_NAME"
run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $TAG_NAME wezterm-*.rpm"
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm"

View File

@ -80,12 +80,10 @@ jobs:
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh $TAG_NAME"
run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $TAG_NAME wezterm-*.rpm"
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm"

View File

@ -80,12 +80,10 @@ jobs:
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh $TAG_NAME"
run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $TAG_NAME wezterm-*.rpm"
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm"

View File

@ -94,12 +94,10 @@ jobs:
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh $TAG_NAME"
run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $TAG_NAME WezTerm-*.zip"
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) WezTerm-*.zip"

View File

@ -93,12 +93,10 @@ jobs:
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh $TAG_NAME"
run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $TAG_NAME wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync"
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync"

View File

@ -85,12 +85,10 @@ jobs:
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh $TAG_NAME"
run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $TAG_NAME wezterm-*.deb wezterm-*.xz"
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz"

View File

@ -65,12 +65,10 @@ jobs:
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh $TAG_NAME"
run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $TAG_NAME WezTerm-*.zip WezTerm-*.exe"
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) WezTerm-*.zip WezTerm-*.exe"

View File

@ -443,18 +443,16 @@ cargo build --all --release""",
),
RunStep(
"Create pre-release",
"bash ci/retry.sh bash ci/create-release.sh $TAG_NAME",
"bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)",
env={
"GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}",
"TAG_NAME": "${{ github.event.release.tag_name }}",
},
),
RunStep(
"Upload to Tagged Release",
f"bash ci/retry.sh gh release upload --clobber $TAG_NAME {glob}",
f"bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) {glob}",
env={
"GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}",
"TAG_NAME": "${{ github.event.release.tag_name }}",
},
),
]

2
ci/tag-name.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
git -c "core.abbrev=8" show -s "--format=%cd-%h" "--date=format:%Y%m%d-%H%M%S"

View File

@ -1,4 +1,4 @@
#!/bin/bash
TAGNAME=$(git -c "core.abbrev=8" show -s "--format=%cd-%h" "--date=format:%Y%m%d-%H%M%S")
TAGNAME=$(./ci/tag-name.sh)
git tag $TAGNAME