From 71bab2bc99b8f2f41727171c9db5f6cfde252983 Mon Sep 17 00:00:00 2001 From: Quentin Quadrat Date: Thu, 11 Jan 2024 22:54:30 +0100 Subject: [PATCH] CI: release artifacts --- .github/workflows/ci.yml | 16 +++++++++++++--- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5beab2..a570a21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,8 +37,12 @@ jobs: python3 build.py - name: Check build run: | - cd build - ls gdcefSubProcess libgdcef.so libcef.so + ls build/gdcefSubProcess build/libgdcef.so build/libcef.so + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: gdcef-artifacts-godot_4-linux_x86_64 + path: build/ ############################################################################# ### Windows @@ -53,7 +57,7 @@ jobs: - uses: ilammy/msvc-dev-cmd@v1.10.0 - name: Checkout GDCEF - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true - name: Install system packages @@ -72,3 +76,9 @@ jobs: Test-Path -Path \a\gdcef\gdcef\build\gdcefSubProcess.exe Test-Path -Path \a\gdcef\gdcef\build\libgdcef.dll Test-Path -Path \a\gdcef\gdcef\build\libcef.dll + cd - + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: gdcef-artifacts-godot_4-windows_x86_64 + path: build/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9066fbf --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Releases + +on: + push: + tags: + - '*' + +jobs: + + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Download artifacts + uses: actions/download-artifact@v3 + with: + path: artifacts + - name: Create release + run: | + tar -czvf gdcef-artifacts-godot_4-linux_x86_64.tar.gz artifacts/gdcef-artifacts-godot_4-linux_x86_64 + tar -czvf gdcef-artifacts-godot_4-windows_x86_64.tar.gz artifacts/gdcef-artifacts-godot_4-windows_x86_64 + uses: ncipollo/release-action@v1 + with: + artifacts: "gdcef-artifacts-godot_4-*.tar.gz"