|
1 | | -name: Build |
| 1 | +name: Build Ghostty AppImage |
2 | 2 | on: |
| 3 | + schedule: |
| 4 | + - cron: "0 0 * * *" |
3 | 5 | workflow_dispatch: {} |
4 | 6 | pull_request: |
5 | 7 | types: [opened, synchronize, reopened] |
@@ -44,20 +46,24 @@ jobs: |
44 | 46 | restore-keys: | |
45 | 47 | ${{ runner.os }}-${{ matrix.arch }}-ghostty- |
46 | 48 |
|
47 | | - - name: Setup Build Env |
| 49 | + - name: Setup Build Environment |
48 | 50 | run: ./setup.sh |
49 | 51 |
|
50 | | - - name: Build Ghostty |
51 | | - run: ./build.sh |
| 52 | + - name: Build Ghostty AppImage |
| 53 | + run: | |
| 54 | + if [ "${{ github.event_name }}" == "schedule" ]; then |
| 55 | + sed -i 's/GHOSTTY_VERSION="$(cat VERSION)"/GHOSTTY_VERSION="tip"/' build.sh |
| 56 | + fi |
| 57 | + ./build.sh |
52 | 58 |
|
53 | | - - name: Upload Artifact |
| 59 | + - name: Upload AppImage Artifacts |
54 | 60 | uses: actions/upload-artifact@v4 |
55 | 61 | with: |
56 | 62 | name: ghostty-appimage-${{ matrix.arch }} |
57 | 63 | retention-days: 7 |
58 | 64 | path: /tmp/ghostty-build/Ghostty-*-${{ matrix.arch }}.AppImage* |
59 | 65 |
|
60 | | - - name: Upload binaries to release |
| 66 | + - name: Ghostty stable release |
61 | 67 | if: ${{ github.event_name == 'release' }} |
62 | 68 | uses: svenstaro/upload-release-action@v2 |
63 | 69 | with: |
|
66 | 72 | tag: ${{ github.ref }} |
67 | 73 | overwrite: true |
68 | 74 | file_glob: true |
| 75 | + |
| 76 | + - name: Ghostty Tip ("Nightly") release |
| 77 | + uses: marvinpinto/action-automatic-releases@v1.2.1 |
| 78 | + if: ${{ github.event_name == 'schedule' }} |
| 79 | + with: |
| 80 | + title: Ghostty Tip ("Nightly") |
| 81 | + automatic_release_tag: tip |
| 82 | + prerelease: true |
| 83 | + draft: false |
| 84 | + files: | |
| 85 | + /tmp/ghostty-build/Ghostty-*-${{ matrix.arch }}.AppImage* |
| 86 | + repo_token: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments