name: C++ CI-CD on: push: tags: - '*' jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: "๐Ÿงบ Set up Environment" run: | sudo apt update && sudo apt install -y wget cmake bison flex git - name: "๐Ÿต Install third-party" run: | cd tools/scripts && ./InstallDep.sh - name: "๐Ÿ  Build" run: | mkdir build && cd build && cmake .. && make -j - name: "๐Ÿ“ฆ Stage" run: | mkdir staging cp bin/* staging cp -r resource staging - name: "๐Ÿš€ Release" uses: "marvinpinto/action-automatic-releases@latest" with: repo_token: "${{ secrets.GITHUB_TOKEN }}" automatic_release_tag: "${{ env.RELEASE_VERSION }}" prerelease: false title: "Release ${{ env.RELEASE_VERSION }}" files: | staging/*