Code Monkey home page Code Monkey logo

Comments (4)

onepersonhere avatar onepersonhere commented on July 4, 2024 1

Thanks!

from godot-ci.

Calinou avatar Calinou commented on July 4, 2024

The setup command should be adjusted in your YAML, as Mono export templates are installed to 3.4.4.stable.mono.

from godot-ci.

onepersonhere avatar onepersonhere commented on July 4, 2024

The setup command should be adjusted in your YAML, as Mono export templates are installed to 3.4.4.stable.mono.
@Calinou

Hi thanks for the prompt reply, it works after the edit however now I am getting the following error @Windows Build:

Run mkdir -v -p build/windows
  mkdir -v -p build/windows
  cd $EXPORT_NAME
  godot -v --export "Windows Desktop" ../build/windows/$EXPORT_NAME.exe
  shell: sh -e {0}
  env:
    GODOT_VERSION: 3.4.4
    EXPORT_NAME: test-project
mkdir: created directory 'build'
mkdir: created directory 'build/windows'
/__w/_temp/a7850ee6-95f7-4f6f-97d3-d78d05808777.sh: 2: cd: can't cd to test-project
Error: Process completed with exit code 2.

This is the current .yml:

name: "godot-ci export"
on: push

env:
  GODOT_VERSION: 3.4.4
  EXPORT_NAME: test-project

jobs:
  export-windows:
    name: Windows Export
    runs-on: ubuntu-20.04
    container:
      image: barichello/godot-ci:mono-3.4.4
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          lfs: true

      - name: print secrets
        run: |
          printf 'extends Node\nconst API_KEY := \"%s\"' $DEV_ENV_FILE > UI/Firebase/PrivateKey.gd
          cat UI/Firebase/PrivateKey.gd
        shell: bash
        env:
          DEV_ENV_FILE : ${{secrets.FIREBASE_API_KEY}}

      - name: Upload a Build Artifact
        uses: actions/upload-artifact@v2
        with:
          name: DEV_ENV_FILE
          path: UI/Firebase/PrivateKey.gd

      - name: Setup
        run: |
          cd /
          mkdir -v -p ~/.local/share/godot/templates
          mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable.mono ~/.local/share/godot/templates/${GODOT_VERSION}.stable.mono
      - name: Windows Build
        run: |
          mkdir -v -p build/windows
          cd $EXPORT_NAME
          godot -v --export "Windows Desktop" ../build/windows/$EXPORT_NAME.exe
      - name: Upload Artifact
        uses: actions/upload-artifact@v1
        with:
          name: windows
          path: build/windows

from godot-ci.

bend-n avatar bend-n commented on July 4, 2024

Remove the cd $EXPORT_NAME if your game isnt in a subfolder

from godot-ci.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.