fix bug causing world to be opened twice #519
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci-build | |
on: | |
push: | |
branches: | |
- '**' | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- run: | | |
git fetch --force --tags | |
- name: Setup Golang with cache | |
uses: magnetikonline/action-golang-cache@v3 | |
with: | |
go-version-file: go.mod | |
- name: Install SSH Key | |
if: ${{ env.SSH_PRIVATE_KEY != '' }} | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
known_hosts: ${{ secrets.KNOWN_HOSTS }} | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
if: ${{ env.REPO_KEY != '' }} | |
with: | |
packages: git-crypt xxd gcc pkg-config libwayland-dev libx11-dev libx11-xcb-dev libxkbcommon-x11-dev libgles2-mesa-dev libegl1-mesa-dev libffi-dev libxcursor-dev libvulkan-dev | |
version: 1.0 | |
env: | |
REPO_KEY: ${{ secrets.REPO_KEY }} | |
- name: decrypt | |
if: ${{ env.REPO_KEY != '' }} | |
run: | | |
echo ${REPO_KEY} | xxd -r -p > ../bedrock-repo-key.key | |
git-crypt unlock ../bedrock-repo-key.key | |
rm ../bedrock-repo-key.key | |
env: | |
REPO_KEY: ${{ secrets.REPO_KEY }} | |
- name: dependencies | |
run: | | |
go get ./cmd/bedrocktool | |
go install gioui.org/cmd/gogio@latest | |
- name: build | |
id: build | |
run: python build.py | |
- name: Deploy with rsync | |
if: ${{ env.SSH_HOST != '' }} | |
run: rsync -avzO ./updates/ olebeck@${SSH_HOST}:/var/www/updates/ | |
env: | |
SSH_HOST: ${{ secrets.SSH_HOST }} | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: ${{ steps.build.outputs.release_tag }} | |
files: ./builds/* | |
prerelease: false |