mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-24 18:38:39 +03:00
CI: Update release-tag.yml to include the version in the source archive and prefix within (#3490)
Continuing from #3043 I agree that it seems idiomatic to have an archive with format <name>-<version>.tar.gz and matching prefix for packaging, RPM and Debian packaging guides seem to assume this format and the automated extract tooling assumes it too. # Testing I haven't tested running this workflow, and am unsure about the yaml substitution at lines 105-106 # Breaking changes This would break existing packaging scripts, not sure how we want to version it
This commit is contained in:
13
.github/workflows/release-tag.yml
vendored
13
.github/workflows/release-tag.yml
vendored
@ -74,6 +74,8 @@ jobs:
|
|||||||
source-tarball:
|
source-tarball:
|
||||||
runs-on: namespace-profile-ghostty-md
|
runs-on: namespace-profile-ghostty-md
|
||||||
needs: [setup]
|
needs: [setup]
|
||||||
|
env:
|
||||||
|
GHOSTTY_VERSION: ${{ needs.setup.outputs.version }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@ -87,19 +89,24 @@ jobs:
|
|||||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
|
|
||||||
- name: Create Tarball
|
- name: Create Tarball
|
||||||
run: git archive --format=tgz --prefix=ghostty-source/ -o ghostty-source.tar.gz HEAD
|
run: |
|
||||||
|
git archive --format=tgz --prefix="ghostty-${GHOSTTY_VERSION}/" -o "ghostty-${GHOSTTY_VERSION}.tar.gz" HEAD
|
||||||
|
git archive --format=tgz --prefix=ghostty-source/ -o ghostty-source.tar.gz HEAD
|
||||||
|
|
||||||
- name: Sign Tarball
|
- name: Sign Tarball
|
||||||
run: |
|
run: |
|
||||||
echo -n "${{ secrets.MINISIGN_KEY }}" > minisign.key
|
echo -n "${{ secrets.MINISIGN_KEY }}" > minisign.key
|
||||||
echo -n "${{ secrets.MINISIGN_PASSWORD }}" > minisign.password
|
echo -n "${{ secrets.MINISIGN_PASSWORD }}" > minisign.password
|
||||||
nix develop -c minisign -S -m ghostty-source.tar.gz -s minisign.key < minisign.password
|
nix develop -c minisign -S -m "ghostty-${GHOSTTY_VERSION}.tar.gz" -s minisign.key < minisign.password
|
||||||
|
nix develop -c minisign -S -m "ghostty-source.tar.gz" -s minisign.key < minisign.password
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: source-tarball
|
name: source-tarball
|
||||||
path: |-
|
path: |-
|
||||||
|
"ghostty-${{ env.GHOSTTY_VERSION }}.tar.gz"
|
||||||
|
"ghostty-${{ env.GHOSTTY_VERSION }}.tar.gz.minisig"
|
||||||
ghostty-source.tar.gz
|
ghostty-source.tar.gz
|
||||||
ghostty-source.tar.gz.minisig
|
ghostty-source.tar.gz.minisig
|
||||||
|
|
||||||
@ -352,6 +359,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir blob
|
mkdir blob
|
||||||
mkdir -p blob/${GHOSTTY_VERSION}
|
mkdir -p blob/${GHOSTTY_VERSION}
|
||||||
|
mv "ghostty-${GHOSTTY_VERSION}.tar.gz blob/${GHOSTTY_VERSION}/ghostty-${GHOSTTY_VERSION}.tar.gz"
|
||||||
|
mv ghostty-${GHOSTTY_VERSION}.tar.gz.minisig blob/${GHOSTTY_VERSION}/ghostty-${GHOSTTY_VERSION}.tar.gz.minisig
|
||||||
mv ghostty-source.tar.gz blob/${GHOSTTY_VERSION}/ghostty-source.tar.gz
|
mv ghostty-source.tar.gz blob/${GHOSTTY_VERSION}/ghostty-source.tar.gz
|
||||||
mv ghostty-source.tar.gz.minisig blob/${GHOSTTY_VERSION}/ghostty-source.tar.gz.minisig
|
mv ghostty-source.tar.gz.minisig blob/${GHOSTTY_VERSION}/ghostty-source.tar.gz.minisig
|
||||||
mv ghostty-macos-universal.zip blob/${GHOSTTY_VERSION}/ghostty-macos-universal.zip
|
mv ghostty-macos-universal.zip blob/${GHOSTTY_VERSION}/ghostty-macos-universal.zip
|
||||||
|
@ -19,8 +19,8 @@ at `release.files.ghostty.org` in the following URL format where
|
|||||||
`VERSION` is the version number with no prefix such as `1.0.0`:
|
`VERSION` is the version number with no prefix such as `1.0.0`:
|
||||||
|
|
||||||
```
|
```
|
||||||
https://release.files.ghostty.org/VERSION/ghostty-source.tar.gz
|
https://release.files.ghostty.org/VERSION/ghostty-VERSION.tar.gz
|
||||||
https://release.files.ghostty.org/VERSION/ghostty-source.tar.gz.minisig
|
https://release.files.ghostty.org/VERSION/ghostty-VERSION.tar.gz.minisig
|
||||||
```
|
```
|
||||||
|
|
||||||
Signature files are signed with
|
Signature files are signed with
|
||||||
|
Reference in New Issue
Block a user