Skip to content

4.2 to 4.2.1

4.2 to 4.2.1 #91

Workflow file for this run

name: "godot-ci export"
on: push
env:
GODOT_VERSION: "4.2.1"
EXPORT_NAME: ultimate-myanmar-typing-wizard
PROJECT_PATH: ./
jobs:
export-windows:
name: Windows Export
runs-on: ubuntu-22.04
container:
image: barichello/godot-ci:4.2.1
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/templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
- name: Windows Build
run: |
mkdir -v -p build/windows
cd $PROJECT_PATH
godot --headless --verbose --export-release "Windows Desktop" ../build/windows/$EXPORT_NAME.exe
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: $EXPORT_NAME-windows-x86-64
path: build/windows
export-linux:
name: Linux Export
runs-on: ubuntu-22.04
container:
image: barichello/godot-ci:4.2.1
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/templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
- name: Linux Build
run: |
mkdir -v -p build/linux
cp -rvf Texts build/linux/
godot --headless --export-debug "Linux/X11"
- name: Upload Artifact
uses: actions/upload-artifact@v3 # for some reason v4 fails in the linux export job
with:
name: $EXPORT_NAME-linux-x86-64
path: build/linux
# export-web:
# name: Web Export
# runs-on: ubuntu-20.04
# container:
# image: barichello/godot-ci:3.3.4
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# lfs: true
# - name: Setup
# run: |
# mkdir -v -p ~/.local/share/godot/templates
# mv /templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
# - name: Web Build
# run: |
# mkdir -v -p build/web
# cd $PROJECT_PATH
# godot -v --export "HTML5" ../build/web/index.html
# - name: Upload Artifact
# uses: actions/upload-artifact@v1
# 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.
# export-mac:
# name: Mac Export
# runs-on: ubuntu-20.04
# container:
# image: barichello/godot-ci:3.3.4
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# lfs: true
# - name: Setup
# run: |
# mkdir -v -p ~/.local/share/godot/templates
# mv /templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
# - name: Mac Build
# run: |
# mkdir -v -p build/mac
# cd $PROJECT_PATH
# godot -v --export "Mac OSX" ../build/mac/$EXPORT_NAME.zip
# - name: Upload Artifact
# uses: actions/upload-artifact@v1
# with:
# name: mac
# path: build/mac
create-release:
name: Create Release
needs: [export-windows, export-linux]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
path: build/
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
body: ""
- name: Upload Windows Build to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/windows/$EXPORT_NAME.exe
asset_name: ultimate-myanmar-typing-wizard_windows_debug_x64_64.zip
asset_content_type: application/zip
- name: Upload Linux Build to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/linux/$EXPORT_NAME.x86_64
asset_name: ultimate-myanmar-typing-wizard_linux_debug_x86_x64.zip
asset_content_type: application/zip