diff --git a/.gitea/workflows/build-linux-glfw-x64.yml b/.gitea/workflows/release.yml similarity index 65% rename from .gitea/workflows/build-linux-glfw-x64.yml rename to .gitea/workflows/release.yml index e8459429..fb00d813 100644 --- a/.gitea/workflows/build-linux-glfw-x64.yml +++ b/.gitea/workflows/release.yml @@ -1,7 +1,9 @@ name: build-linux-glfw-x64 on: + # ON tag push: - branches: [ master, main, main2 ] + tags: + - 'v*' jobs: build: runs-on: ubuntu-latest @@ -11,6 +13,7 @@ jobs: - name: Install Dependencies run: | + mkdir release sudo apt-get update sudo apt-get install -y \ build-essential \ @@ -23,15 +26,22 @@ jobs: python3-pil - - name: Build Game + - name: Build Linux GLFW x64 run: | + if [ -d "build" ]; then + rm -rf build + fi mkdir build + mkdir release/linux-glfw-x64 cd build cmake .. make + cd .. + cp build/src/Dawn release/linux-glfw-x64/Dawn + cp build/dawn.tar release/linux-glfw-x64/dawn.tar - name: Release uses: akkuman/gitea-release-action@v1 with: files: |- - README.md \ No newline at end of file + release/* \ No newline at end of file