diff options
| author | sigoden <sigoden@gmail.com> | 2023-07-15 16:14:30 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-15 16:14:30 +0800 |
| commit | bbf3672a5f95c6348600029caf1f48a52813fb62 (patch) | |
| tree | fd5a7c492cf9f205f07d219a4126eae1ef88e61f /.github | |
| parent | 70e62a4fa7e9a9f92bca511bcb2138bbbd921eb4 (diff) | |
| download | aichat-bbf3672a5f95c6348600029caf1f48a52813fb62.tar.gz | |
chore: fix release ci (#138)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/release.yaml | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 25e10e0..cc63438 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -107,8 +107,7 @@ jobs: set -euxo pipefail bin=${GITHUB_REPOSITORY##*/} - src=`pwd` - dist=$src/dist + dist_dir=`pwd`/dist name=$bin-$version-$target executable=target/$target/release/$bin @@ -116,18 +115,18 @@ jobs: executable=$executable.exe fi - mkdir $dist - cp $executable $dist - cd $dist + mkdir $dist_dir + cp $executable $dist_dir + cd $dist_dir if [[ "$RUNNER_OS" == "Windows" ]]; then - archive=$dist/$name.zip + archive=$dist_dir/$name.zip 7z a $archive * - echo "archive=$archive" >> $GITHUB_OUTPUT + echo "archive=dist/$name.zip" >> $GITHUB_OUTPUT else - archive=$dist/$name.tar.gz - tar czf $archive * - echo "archive=$archive" >> $GITHUB_OUTPUT + archive=$dist_dir/$name.tar.gz + tar -czf $archive * + echo "archive=dist/$name.tar.gz" >> $GITHUB_OUTPUT fi - name: Publish Archive |
