From d6efe12044ec890231b6f21c57c29428ef14245d Mon Sep 17 00:00:00 2001 From: Ryan Crichton Date: Mon, 4 Dec 2023 09:50:41 +0200 Subject: [PATCH] Improve CI setup to be able to release default recipes --- .github/workflows/main.yaml | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index d58c35d2..1568ad93 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -9,25 +9,19 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v2 - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.17 + # replaces latest with the version of the release in the config.yaml file + - name: Set version + run: | + sed -i "s/latest/${{ github.event.release.tag_name }}/g" config.yaml - - name: Build Releases - run: ./get-cli.sh - - - name: Test binaries - run: ./instant-linux help - - - name: Release - uses: softprops/action-gh-release@v1 - with: - files: | - ./instant-linux - ./instant-macos - ./instant.exe - ./config.yml - ./banner.txt + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: | + ./config.yml + ./banner.txt + ./cdr-dw.env + ./cdr.env + ./mpi.env