Skip to content

Commit 0274835

Browse files
author
psadi
committed
ci: use bash shell for tags
1 parent 027ecc0 commit 0274835

File tree

1 file changed

+36
-13
lines changed

1 file changed

+36
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,6 @@ jobs:
4040
with:
4141
persist-credentials: false
4242

43-
- name: Tip Tag
44-
if: ${{ github.event_name == 'schedule' && github.ref_name == 'main' }}
45-
run: |
46-
git config user.name "github-actions[bot]"
47-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
48-
git tag -fa tip -m "Latest Continuous Release" ${GITHUB_SHA}
49-
git push --force origin tip
50-
5143
- name: Cache dependencies
5244
id: cache-ghostty
5345
uses: actions/cache@v4
@@ -73,16 +65,29 @@ jobs:
7365
retention-days: 7
7466
path: /tmp/ghostty-build/Ghostty-*-${{ matrix.arch }}.AppImage*
7567

76-
release_appimage:
77-
name: 👻 Release Ghostty AppImage
68+
tag:
69+
name: "👻 Tip Tag"
70+
runs-on: ubuntu-latest
71+
needs:
72+
- build_appimage
73+
steps:
74+
- uses: actions/checkout@v4
75+
- name: Tip Tag
76+
run: |
77+
git config user.name "github-actions[bot]"
78+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
79+
git tag -fa tip -m "Latest Continuous Release" ${GITHUB_SHA}
80+
git push --force origin tip
81+
82+
release_stable:
83+
name: 👻 Release Ghostty AppImage (Stable)
7884
needs:
7985
- build_appimage
8086
permissions:
8187
actions: read
82-
security-events: write
8388
contents: write
8489
runs-on: ubuntu-latest
85-
if: ${{ github.event_name == 'release' || github.event_name == 'schedule' }}
90+
if: ${{ github.event_name == 'release' }}
8691
steps:
8792
- uses: actions/download-artifact@v4
8893
with:
@@ -93,7 +98,6 @@ jobs:
9398
name: ghostty-appimage-x86_64
9499

95100
- name: Ghostty stable
96-
if: ${{ github.event_name == 'release' }}
97101
uses: svenstaro/upload-release-action@v2
98102
with:
99103
repo_token: ${{ secrets.GITHUB_TOKEN }}
@@ -102,6 +106,25 @@ jobs:
102106
overwrite: true
103107
file_glob: true
104108

109+
release_nightly:
110+
name: 👻 Release Ghostty AppImage (Nightly)
111+
if: ${{ github.event_name == 'schedule' }}
112+
needs:
113+
- build_appimage
114+
- tag
115+
permissions:
116+
actions: read
117+
contents: write
118+
runs-on: ubuntu-latest
119+
if: ${{ github.event_name == 'schedule' }}
120+
steps:
121+
- uses: actions/download-artifact@v4
122+
with:
123+
name: ghostty-appimage-aarch64
124+
125+
- uses: actions/download-artifact@v4
126+
with:
127+
name: ghostty-appimage-x86_64
105128
- name: Ghostty Tip ("Nightly")
106129
if: ${{ github.event_name == 'schedule' && github.ref_name == 'main' }}
107130
uses: softprops/[email protected]

0 commit comments

Comments
 (0)