Skip to content

Commit

Permalink
fix deploy pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
deven96 committed Apr 15, 2021
1 parent 7eb7412 commit f16558a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ jobs:
- uses: actions/checkout@v2
- run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- run: |
tag=${{env.RELEASE_VERSION}}
if [ "$CURRENT_OS" == "ubuntu-18.04" ]; then
sudo apt-get install libncursesw5-dev
alias sedi="sed -i"
sed -i 's/version\:.*/version\: "${tag:1}"/' src/cli.yaml
elif [ "$CURRENT_OS" == "macos-latest" ]; then
brew install ncurses gsed
alias sedi="gsed -i"
gsed -i 's/version\:.*/version\: "${tag:1}"/' src/cli.yaml
fi
tag=${{env.RELEASE_VERSION}}
sedi 's/version\:.*/version\: "${tag:1}"/' src/cli.yaml
env:
CURRENT_OS: ${{matrix.os}}
- run: cargo build --release --locked && chmod +x target/release/mythra
Expand Down

0 comments on commit f16558a

Please sign in to comment.