This repository has been archived on 2023-04-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
family-lineage/.github/workflows/build_release.yml
Joseph Manley 12ea66e4fc Create custom match plugin
Rename world_control

Fix package name

Attempt with main package

Go world_control debug

Go world_control debug

Added get world RPC method

Remove '_' from module

Nakama plugin testing

Nakama plugin testing

Nakama plugin testing

Try updated pipeline

Nakama plugin testing

Update pipeline

Rework plugin dir

Fix path

Fix imports

Fix imports

Load match

Load match work

Server changes

Server changes

Server changes

Changes basic upon helpful suggestions

Client side get match
2020-08-16 03:34:15 -04:00

98 lines
3.1 KiB
YAML

name: Build Release
on:
release:
types:
- created
jobs:
Godot:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [linux, osx, win32, win64]
steps:
- name: Checkout
uses: actions/checkout@v2
- id: get_tag
name: Get Tag
env:
GITHUB_HEAD_REF: $${{ github.head_ref }}
GITHUB_BASE_REF: ${{ github.base_ref }}
run: |
TAG=$(jq --raw-output '.release.tag_name' $GITHUB_EVENT_PATH)
echo ::set-output name=TAG::$TAG
echo $TAG > VERSION.txt
- name: Configure
env:
PLATFORM: ${{ matrix.platform }}
run: |
if [ "$PLATFORM" = "win32" ] || [ "$PLATFORM" = "win64" ] ; then
echo "::set-env name=EXPORT_SUFFIX::.exe"
fi
- name: Build
id: build
uses: josephbmanley/build-godot-action@v1.4.0
with:
name: family${{ env.EXPORT_SUFFIX }}
preset: ${{ matrix.platform }}
projectDir: client
debugMode: 'true'
- name: Push to Itch
uses: josephbmanley/butler-publish-itchio-action@v1.0.2
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: ${{ matrix.platform }}
ITCH_GAME: family
ITCH_USER: josephbmanley
PACKAGE: ${{ github.workspace }}/${{ steps.build.outputs.build }}
VERSION: ${{ steps.get_tag.outputs.TAG }}
Docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build RPC Plugin
id: build_rpc_plugin
uses: josephbmanley/build-nakama-plugin-action@v0.1.1
with:
nakamaVersion: "2.12.0"
moduleDirectory: server/plugins/world_rpc
- name: Build Control Plugin
id: build_control_plugin
uses: josephbmanley/build-nakama-plugin-action@v0.1.1
with:
nakamaVersion: "2.12.0"
moduleDirectory: server/plugins/control
- name: Move Binary
run: |
mkdir -p server/data/modules
mv ${{ steps.build_rpc_plugin.outputs.binary }} server/data/modules
mv ${{ steps.build_control_plugin.outputs.binary }} server/data/modules
- id: get_tag
name: Get Tag
env:
GITHUB_HEAD_REF: $${{ github.head_ref }}
GITHUB_BASE_REF: ${{ github.base_ref }}
run: |
TAG=$(jq --raw-output '.release.tag_name' $GITHUB_EVENT_PATH)
echo ::set-output name=TAG::$TAG
echo $TAG > VERSION.txt
- name: Get Docker Repo Name
id: find_repo
run: |
REPO=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
echo ::set-output name=REPO::$REPO
- name: Push Tag to GitHub Package
uses: opspresso/action-docker@master
with:
args: --docker
env:
USERNAME: ${{ github.actor }}
PASSWORD: ${{ secrets.GITHUB_TOKEN }}
REGISTRY: "docker.pkg.github.com/${{ steps.find_repo.outputs.REPO }}"
BUILD_PATH: "server"
DOCKERFILE: "server/Dockerfile"
IMAGE_NAME: "gdwj24"
TAG_NAME: ${{ steps.get_tag.outputs.TAG }}
LATEST: "true"