on master help sign in
Fix release packaging.
commite1dc1d2d48281ed08f52ef6009cadeb86d130ed7 authorBlaž Hrastnik <blaz@mxxn.io> dateTue 11 May 2021, 19:46 (5 years ago) parentf6d0c7a
3 files changed+46−31
.github/workflows/release.yml+39−29 README.md+7−2 doc/architecture.md → docs/architecture.md
.github/workflows/release.yml+39−29
@@ -86,49 +86,31 @@ jobs:
8686 aarch64-linux-gnu-strip \
8787 /target/${{ matrix.target }}/release/hx
8888
89− - name: Calculate tag name
90− run: |
91− name=dev
92− if [[ $GITHUB_REF == refs/tags/v* ]]; then
93− name=${GITHUB_REF:10}
94− fi
95− echo ::set-output name=val::$name
96− echo TAG=$name >> $GITHUB_ENV
97− id: tagname
98−
9989 - name: Build archive
10090 shell: bash
10191 run: |
102− # outdir="$(ci/cargo-out-dir "${{ env.TARGET_DIR }}")"
103− staging="helix-${{ env.RELEASE_VERSION }}-${{ matrix.target }}"
104− mkdir "$staging"
105− cp {README.md,LICENSE} "$staging/"
106− # cp {CHANGELOG.md,FAQ.md,GUIDE.md} "$staging/doc/"
107− # cp "$outdir"/{hx.bash,hx.fish,_hx.ps1} "$staging/complete/"
108− # cp complete/_hx "$staging/complete/"
92+ mkdir dist
10993 if [ "${{ matrix.os }}" = "windows-2019" ]; then
110− cp "target/${{ matrix.target }}/release/hx.exe" "$staging/"
111− 7z a "$staging.zip" "$staging"
112− echo "ASSET=$staging.zip" >> $GITHUB_ENV
94+ cp "target/${{ matrix.target }}/release/hx.exe" "dist/"
11395 else
114− # The man page is only generated on Unix systems. ¯\_(ツ)_/¯
115− # cp "$outdir"/hx.1 "$staging/doc/"
116− cp "target/${{ matrix.target }}/release/hx" "$staging/"
117− tar czf "$staging.tar.gz" "$staging"
118− echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV
96+ cp "target/${{ matrix.target }}/release/hx" "dist/"
11997 fi
12098
121− # package
12299 - uses: actions/upload-artifact@v1
123100 with:
124− name: tarballs-${{ matrix.build }}
125− path: ${{ env.ASSET }}
101+ name: bins-${{ matrix.build }}
102+ path: dist
126103
127104 publish:
128105 name: Publish
129106 needs: [dist]
130107 runs-on: ubuntu-latest
131108 steps:
109+ - name: Checkout sources
110+ uses: actions/checkout@v2
111+ with:
112+ submodules: false
113+
132114 - uses: actions/download-artifact@v2
133115 with:
134116 path: dist
@@ -144,11 +126,39 @@ jobs:
144126 echo TAG=$name >> $GITHUB_ENV
145127 id: tagname
146128
129+ - name: Build archive
130+ shell: bash
131+ run: |
132+ set -euxo pipefail
133+
134+ rm -rf tmp
135+ mkdir tmp
136+ mkdir dist
137+
138+ for dir in bins-* ; do
139+ platform=${dir#"bins-"}
140+ if [[ $platform =~ "windows" ]]; then
141+ exe=".exe"
142+ fi
143+ pkgname=helix-$TAG-$platform
144+ mkdir tmp/$pkgname
145+ cp LICENSE README.md tmp/$pkgname
146+ cp -r runtime tmp/$pkgname/
147+ mv bins-$platform/hx$exe tmp/$pkgname
148+ chmod +x tmp/$pkgname/hx$exe
149+
150+ if [ "$exe" = "" ]; then
151+ tar cJf dist/$pkgname.tar.xz -C tmp $pkgname
152+ else
153+ (cd tmp && 7z a -r ../dist/$pkgname.zip $pkgname)
154+ fi
155+ done
156+
147157 - name: Upload binaries to release
148158 uses: svenstaro/upload-release-action@v2
149159 with:
150160 repo_token: ${{ secrets.GITHUB_TOKEN }}
151− file: dist/**/*
161+ file: dist/*
152162 file_glob: true
153163 tag: ${{ steps.tagname.outputs.val }}
154164 overwrite: true
README.md+7−2
@@ -1,10 +1,15 @@
11# Helix
22
3+
4+[![Build status](https://github.com/helix-editor/helix/workflows/ci/badge.svg)](https://github.com/helix-editor/helix/actions)
5+
36A kakoune / neovim inspired editor, written in Rust.
47
58The editing model is very heavily based on kakoune; during development I found
69myself agreeing with most of kakoune's design decisions.
710
11+For more information, see the [website](https://helix-editor.com).
12+
813# Features
914
1015- Vim-like modal editing
@@ -40,7 +45,7 @@ Some suggestions to get started:
4045
4146- You can look at the [good first issue](https://github.com/helix-editor/helix/labels/good%20first%20issue) label on the issue tracker.
4247- Help with packaging on various distributions needed!
43−- If your preffered language is missing, integrating a tree-sitter grammar for
48+- If your preferred language is missing, integrating a tree-sitter grammar for
4449 it and defining syntax highlight queries for it is straight forward and
4550 doesn't require much knowledge of the internals.
4651
@@ -49,5 +54,5 @@ a good overview of the internals.
4954
5055# Getting help
5156
52−Discuss the project on the community [Matrix channel](https://matrix.to/#/#helix-editor:example.com).
57+Discuss the project on the community [Matrix channel](https://matrix.to/#/#helix-editor:matrix.org).
5358
doc/architecture.md → docs/architecture.mdrenamed

The content is the same.