Skip to content

Commit

Permalink
CI: release artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Lecrapouille committed Jan 11, 2024
1 parent 6214784 commit 71bab2b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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/
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 71bab2b

Please sign in to comment.