Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaGanzin committed Oct 17, 2024
1 parent 50a363f commit 9301019
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,34 +54,36 @@ jobs:
gcc await.c -o await.exe -lpthread
- name: Generate autocompletion scripts
if: matrix.os == 'ubuntu-latest'
run: |
mkdir -p releases
mkdir -p autocompletions
./await --autocomplete-fish > autocompletions/await.fish
./await --autocomplete-bash > autocompletions/await.bash
./await --autocomplete-zsh > autocompletions/await.zsh
- name: Move binary to release directory
run: |
if [ ${{ matrix.os }} == 'windows-latest' ]; then
mv await.exe releases/await_${{ github.ref_name }}_windows_amd64.exe
elif [ ${{ matrix.os }} == 'macos-latest' ]; then
mv await releases/await_${{ github.ref_name }}_macos_amd64
else
mv await releases/await_${{ github.ref_name }}_linux_amd64
fi
- name: Upload Autocompletion Scripts
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: autocompletions
path: autocompletions

# - name: Move binary to release directory
# run: |
# if [ ${{ matrix.os }} == 'windows-latest' ]; then
# mv await.exe releases/await_${{ github.ref_name }}_windows_amd64.exe
# elif [ ${{ matrix.os }} == 'macos-latest' ]; then
# mv await releases/await_${{ github.ref_name }}_macos_amd64
# else
# mv await releases/await_${{ github.ref_name }}_linux_amd64
# fi


- name: Upload Binary
uses: actions/upload-artifact@v4
with:
name: await-${{ matrix.os }}
# name: await-${{ matrix.os }}
path: releases/*


Expand Down

0 comments on commit 9301019

Please sign in to comment.