diff --git a/.github/workflows/build_stage.yml b/.github/workflows/build_stage.yml index c8a2fe7..983096c 100644 --- a/.github/workflows/build_stage.yml +++ b/.github/workflows/build_stage.yml @@ -6,6 +6,34 @@ on: - master jobs: + godot: + runs-on: ubuntu-latest + strategy: + matrix: + platform: [linux] + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Download Export Template + env: + PLATFORM: ${{ matrix.platform }} + run: | + mkdir -p client/templates + wget http://godot-enet.cloudsumu.com.s3-website-us-east-1.amazonaws.com/export-templates/debug/$PLATFORM -O client/templates/$PLATFORM + - name: Build + id: build + uses: josephbmanley/build-godot-action@v1.4.0 + with: + name: defend-together + preset: ${{ matrix.platform }} + projectDir: client + debugMode: 'true' + package: 'true' + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: Client - ${{ matrix.platform }} + path: ${{ github.workspace }}/${{ steps.build.outputs.build }} docker: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/release_server.yml b/.github/workflows/release.yml similarity index 76% rename from .github/workflows/release_server.yml rename to .github/workflows/release.yml index e945a96..e8c85af 100644 --- a/.github/workflows/release_server.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,37 @@ on: - created jobs: + godot: + runs-on: ubuntu-latest + strategy: + matrix: + platform: [linux] + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Download Export Template + env: + PLATFORM: ${{ matrix.platform }} + run: | + mkdir -p client/templates + wget http://godot-enet.cloudsumu.com.s3-website-us-east-1.amazonaws.com/export-templates/debug/$PLATFORM -O client/templates/$PLATFORM + - name: Build + id: build + uses: josephbmanley/build-godot-action@v1.4.0 + with: + name: defend-together + preset: ${{ matrix.platform }} + projectDir: client + debugMode: 'true' + package: 'true' + - name: Push to Itch + uses: josephbmanley/butler-publish-itchio-action@v1.0.1 + env: + BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }} + CHANNEL: ${{ matrix.platform }} + ITCH_GAME: example-project + ITCH_USER: username + PACKAGE: ${{ github.workspace }}/${{ steps.build.outputs.build }} docker: runs-on: ubuntu-latest steps: diff --git a/client/.gitignore b/client/.gitignore index ec2a80e..71a0e40 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -1 +1,2 @@ -builds \ No newline at end of file +builds +templates \ No newline at end of file diff --git a/client/export_presets.cfg b/client/export_presets.cfg index 06ba1a1..806d03d 100644 --- a/client/export_presets.cfg +++ b/client/export_presets.cfg @@ -1,6 +1,6 @@ [preset.0] -name="Linux/X11" +name="linux" platform="Linux/X11" runnable=true custom_features="" @@ -21,28 +21,5 @@ texture_format/etc2=false texture_format/no_bptc_fallbacks=true binary_format/64_bits=true binary_format/embed_pck=false -custom_template/release="/var/home/vetra/Projects/godot-enet/bin/godot.x11.opt.64" -custom_template/debug="/var/home/vetra/Projects/godot-enet/bin/godot.x11.opt.debug.64" - -[preset.1] - -name="HTML5" -platform="HTML5" -runnable=true -custom_features="" -export_filter="all_resources" -include_filter="" -exclude_filter="" -export_path="builds/client.html" -patch_list=PoolStringArray( ) -script_export_mode=1 -script_encryption_key="" - -[preset.1.options] - -vram_texture_compression/for_desktop=true -vram_texture_compression/for_mobile=false -html/custom_html_shell="" -html/head_include="" -custom_template/release="" -custom_template/debug="" +custom_template/release="templates/linux" +custom_template/debug="templates/linux"