Skip to content

Fixed build tools version #23

Fixed build tools version

Fixed build tools version #23

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Game Building & Publishing
env:
GODOT_VERSION: 4.2.2
EXPORT_NAME: BlastOff
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: actions-test
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
export-linux:
name: Linux export
container:
image: barichello/godot-ci:4.2.2
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/export_templates/
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
- name: Adding env file
run: |
touch secrets.env
echo ${{ secrets.SW_API_KEY }} >> .env
- name: Linux release build
run: |
mkdir -v -p build/linux
godot --headless --import --export-release "Linux/X11" ./build/linux/$EXPORT_NAME.x86_64
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: linux
path: build/linux
export-android:
name: Android Export
container:
image: barichello/godot-ci:4.2.2
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/export_templates/
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
with:

Check failure on line 80 in .github/workflows/godot-ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/godot-ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 80
packages: "platform-tools" "platforms;android-33" "cmdline-tools;latest" "cmake;3.10.2.4988404" "ndk;23.2.8568313" "build-tools;33.0.2"
- name: Change path
run: echo "$ANDROID_HOME/build-tools/33.0.2" >> "$GITHUB_PATH"
- name: Adding env file
run: |
touch secrets.env
echo ${{ secrets.SW_API_KEY }} >> .env
- name: Adding keystore
run: |
echo ${{ secrets.RELEASE_KEYSTORE_BASE64 }} | base64 --decode > /root/release.keystore
sed 's@keystore/release=".*"@keystore/release="/root/release.keystore"@g' -i export_presets.cfg
sed 's@keystore/release_user=".*"@keystore/release_user=${{ secrets.RELEASE_KEYSTORE_USER }}@g' -i export_presets.cfg
sed 's@keystore/release_password=".*"@keystore/release_password=${{ secrets.RELEASE_KEYSTORE_PASSWORD }}@g' -i export_presets.cfg
- name: Android relase build
run: |
mkdir -v -p build/android
godot --headless --verbose --export-release "Android" ./build/android/$EXPORT_NAME.apk
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: android
path: build/android
export-web:
name: Web Export
runs-on: ubuntu-latest
container:
image: barichello/godot-ci:4.2.2
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/export_templates/
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
- name: Web release build
run: |
mkdir -v -p build/web
godot --headless --verbose --export-release "Web" ./build/web/index.html
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: web
path: build/web
# - name: Install rsync 📚
# run: |
# apt-get update && apt-get install -y rsync
# - name: Deploy to GitHub Pages 🚀
# uses: JamesIves/github-pages-deploy-action@releases/v4
# with:
# branch: gh-pages # The branch the action should deploy to.
# folder: build/web # The folder the action should deploy.