aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-05-11 09:50:02 +0000
committerBlaž Hrastnik2021-05-11 09:50:02 +0000
commit2d88c393f950ba31115558942c4acf85154ab3a4 (patch)
treee6e49ac2b8735f4f042a15be4f7ccb4cc12855c5 /.github/workflows
parent5cbb4efa6d697879137da3ed6ef8a47abc5e8709 (diff)
Update workflows.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml (renamed from .github/workflows/rust.yml)0
-rw-r--r--.github/workflows/release.yml34
2 files changed, 24 insertions, 10 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/build.yml
index 98f85ba5..98f85ba5 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/build.yml
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c4bef4b9..f8fd14df 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -86,14 +86,23 @@ jobs:
aarch64-linux-gnu-strip \
/target/${{ matrix.target }}/release/hx
+ - name: Calculate tag name
+ run: |
+ name=dev
+ if [[ $GITHUB_REF == refs/tags/v* ]]; then
+ name=${GITHUB_REF:10}
+ fi
+ echo ::set-output name=val::$name
+ echo TAG=$name >> $GITHUB_ENV
+ id: tagname
+
- name: Build archive
shell: bash
run: |
# outdir="$(ci/cargo-out-dir "${{ env.TARGET_DIR }}")"
staging="helix-${{ env.RELEASE_VERSION }}-${{ matrix.target }}"
mkdir "$staging"
- cp README.md "$staging/"
- # cp {README.md,LICENSE} "$staging/"
+ cp {README.md,LICENSE} "$staging/"
# cp {CHANGELOG.md,FAQ.md,GUIDE.md} "$staging/doc/"
# cp "$outdir"/{hx.bash,hx.fish,_hx.ps1} "$staging/complete/"
# cp complete/_hx "$staging/complete/"
@@ -112,7 +121,7 @@ jobs:
# package
- uses: actions/upload-artifact@v1
with:
- name: bins-${{ matrix.build }}
+ name: tarballs-${{ matrix.build }}
path: ${{ env.ASSET }}
publish:
@@ -120,21 +129,26 @@ jobs:
needs: [dist]
runs-on: ubuntu-latest
steps:
- - name: Checkout sources
- uses: actions/checkout@v2
- with:
- submodules: false
-
- uses: actions/download-artifact@v2
with:
path: dist
- run: ls -al ./dist
+ - name: Calculate tag name
+ run: |
+ name=dev
+ if [[ $GITHUB_REF == refs/tags/v* ]]; then
+ name=${GITHUB_REF:10}
+ fi
+ echo ::set-output name=val::$name
+ echo TAG=$name >> $GITHUB_ENV
+ id: tagname
+
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: dist/*
+ file: dist/**/*
file_glob: true
- tag: ${{ github.ref }}
+ tag: ${{ steps.tagname.outputs.val }}
overwrite: true