Skip to content

Commit 4b94a0f

Browse files
authored
Merge pull request #57 from psadi/feature/ci
ci: use bash shell for tags
2 parents 027ecc0 + 7546fe2 commit 4b94a0f

File tree

1 file changed

+38
-13
lines changed

1 file changed

+38
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 38 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,32 @@ 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+
if: ${{ github.event_name == 'schedule' }}
74+
steps:
75+
- uses: actions/checkout@v4
76+
with:
77+
persist-credentials: false
78+
- name: Tip Tag
79+
run: |
80+
git config user.name "github-actions[bot]"
81+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
82+
git tag -fa tip -m "Latest Continuous Release" ${GITHUB_SHA}
83+
git push --force origin tip
84+
85+
release_stable:
86+
name: 👻 Release Ghostty AppImage (Stable)
7887
needs:
7988
- build_appimage
8089
permissions:
8190
actions: read
82-
security-events: write
8391
contents: write
8492
runs-on: ubuntu-latest
85-
if: ${{ github.event_name == 'release' || github.event_name == 'schedule' }}
93+
if: ${{ github.event_name == 'release' }}
8694
steps:
8795
- uses: actions/download-artifact@v4
8896
with:
@@ -93,7 +101,6 @@ jobs:
93101
name: ghostty-appimage-x86_64
94102

95103
- name: Ghostty stable
96-
if: ${{ github.event_name == 'release' }}
97104
uses: svenstaro/upload-release-action@v2
98105
with:
99106
repo_token: ${{ secrets.GITHUB_TOKEN }}
@@ -102,6 +109,24 @@ jobs:
102109
overwrite: true
103110
file_glob: true
104111

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

0 commit comments

Comments
 (0)