diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..58cacb99 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +name: Release + +on: + push: + tags: + - 'v*' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: Setup project environment + run: make env + + - name: Make the build + run: make prefab-gui-debug-build + - name: Upload the build + uses: ncipollo/release-action@v1 + with: + artifacts: build/prefab/full/linux_x86_64_gui + + - name: Make the build + run: make prefab-server-debug-build + - name: Upload the build + uses: ncipollo/release-action@v1 + with: + artifacts: build/prefab/full/linux_x86_64_server \ No newline at end of file diff --git a/config/spinoffconfig.py b/config/spinoffconfig.py index 2ff58ff9..51da5f16 100644 --- a/config/spinoffconfig.py +++ b/config/spinoffconfig.py @@ -197,6 +197,7 @@ ctx.filter_file_names = { 'cd.yml', 'deploy_docs.yml', 'nightly.yml', + 'release.yml', 'LICENSE', 'cloudtool', 'bacloud',