From a72510859ec653ae88720e57247de9ae747ee9e2 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 21 Aug 2022 13:28:30 -0500 Subject: [PATCH] ci: add GitHub Actions release workflow --- .github/workflows/release.yml | 66 +++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7971039 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,66 @@ +name: "release" +on: + push: + # branches: + tags: + - '*' + #pull_request: + # branches: + # - '*' + +jobs: + linux: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: true + + - name: Configure CMake + run: cmake -G "Ninja" -B build + + - name: Build + run: cmake --build build + + - uses: actions/upload-artifact@v3 + with: + name: linux-release + path: build/modlimitfix + + windows: + runs-on: windows-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: true + + - name: Configure CMake + #run: cmake -G "Visual Studio 17 2022" -B build + run: cmake -G "Ninja" -B build + + - name: Build + run: cmake --build build + + - uses: actions/upload-artifact@v3 + with: + name: windows-release + path: build/modlimitfix.exe + + release: + runs-on: ubuntu-latest + needs: [linux, windows] + + steps: + - name: Download artifacts + uses: actions/download-artifact@v2 + - name: Release + uses: ncipollo/release-action@v1 + with: + draft: true + generateReleaseNotes: true + artifacts: "modlimitfix,modlimitfix.exe" + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file