diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index efd22c3..e9ca925 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,8 @@ name: Generate Release Notes on: push: + branches: + - main jobs: release: @@ -21,7 +23,16 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + # Some programmers use env matrix but this case it is just two repeated variable and I decided to keep it simple + - name: Set up compiler + run: | + sudo apt-get update + sudo apt-get install -y gcc-10 g++-10 + - name: Build release version + env: + CC: gcc-10 + CXX: g++-10 run: | sudo apt-get install -y cmake cmake . && make @@ -46,5 +57,5 @@ jobs: tag: ${{ steps.tag_version.outputs.new_tag }} name: Release ${{ steps.tag_version.outputs.new_tag }} body: ${{ steps.tag_version.outputs.changelog }} - artifacts: "/usr/src/app/main" + artifacts: "main"