From f16558a406ffe8d8771fe8c242ef18cbf19ed5c0 Mon Sep 17 00:00:00 2001 From: Diretnan Domnan Date: Thu, 15 Apr 2021 12:37:34 +0100 Subject: [PATCH] fix deploy pipeline --- .github/workflows/releases.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 081d36a..35dd8a7 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -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