From 6b3fea857ad9dc0234fc18749103f7d7b697a159 Mon Sep 17 00:00:00 2001 From: dm1sh Date: Thu, 12 May 2022 12:18:23 +0300 Subject: [PATCH] Added release to build action --- .github/workflows/linux-ci.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml index 6ba57d9..e04421d 100644 --- a/.github/workflows/linux-ci.yml +++ b/.github/workflows/linux-ci.yml @@ -8,17 +8,20 @@ on: jobs: build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Install GCC11, pCap, wxWidgets - run: sudo apt update && sudo apt install -y gcc-11 g++-11 libwxgtk3.0-gtk3-dev && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 --slave /usr/bin/g++ g++ /usr/bin/g++-11 - - name: Display versions of tools and libraries - continue-on-error: true - run: uname -a; wx-config --list; wx-config --cxxflags; wx-config --libs; g++ --version | grep g++ - - name: make - run: make - - name: Check binary file - run: ls -alh build/wxMahjong; file build/wxMahjong \ No newline at end of file + - uses: actions/checkout@v2 + - name: Install GCC11, pCap, wxWidgets + run: sudo apt update && sudo apt install -y gcc-11 g++-11 libwxgtk3.0-gtk3-dev && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 --slave /usr/bin/g++ g++ /usr/bin/g++-11 + - name: Display versions of tools and libraries + continue-on-error: true + run: uname -a; wx-config --list; wx-config --cxxflags; wx-config --libs; g++ --version | grep g++ + - name: make + run: make + - name: Check binary file + run: ls -alh build/wxMahjong; file build/wxMahjong + - uses: softprops/action-gh-release@v1 + name: Release + if: startsWith(github.ref, 'refs/tags/') + with: + files: build/wxMahjong