ci-test (working now) #2
1 changed files with 24 additions and 30 deletions
|
@ -1,39 +1,33 @@
|
|||
name: "godot-ci export"
|
||||
on: push
|
||||
|
||||
env:
|
||||
GODOT_VERSION: 4.0.1
|
||||
EXPORT_NAME: snake
|
||||
|
||||
jobs:
|
||||
|
||||
export-linux:
|
||||
name: Linux Export
|
||||
runs-on: ubuntu-20.04
|
||||
container:
|
||||
image: barichello/godot-ci:4.0.1
|
||||
export_game:
|
||||
runs-on: ubuntu-latest
|
||||
name: Export Game Job
|
||||
steps:
|
||||
- name: Setting Up Packages
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3.3.0
|
||||
- name: install wine
|
||||
id: wine_install
|
||||
run: |
|
||||
apt update -y
|
||||
apt upgrade -y
|
||||
apt install -y nodejs ca-certificates
|
||||
ls /root/.local/share/godot/templates/
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v2
|
||||
sudo apt install wine64
|
||||
echo "WINE_PATH=$(which wine64)" >> $GITHUB_OUTPUT
|
||||
- name: export game
|
||||
id: export
|
||||
uses: https://github.com/firebelley/godot-export@v5.0.0
|
||||
with:
|
||||
lfs: true
|
||||
- name: Setup
|
||||
run: |
|
||||
mkdir -v -p ~/.local/share/godot/templates
|
||||
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
|
||||
- name: Linux Build
|
||||
run: |
|
||||
mkdir -v -p build/linux
|
||||
godot -v --export "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64
|
||||
- name: Upload Artifact
|
||||
uses: https://github.com/actions/upload-artifact@v1
|
||||
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.0/Godot_v4.0-stable_linux.x86_64.zip
|
||||
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.0/Godot_v4.0-stable_export_templates.tpz
|
||||
relative_project_path: ./
|
||||
relative_export_path: ./build # move export output to this directory relative to git root
|
||||
archive_output: true
|
||||
wine_path: ${{ steps.wine_install.outputs.WINE_PATH }}
|
||||
- name: create release
|
||||
uses: https://github.com/ncipollo/release-action@v1.11.2
|
||||
with:
|
||||
name: linux
|
||||
path: build/linux
|
||||
token: ${{ secrets.DEPLOY_TOKEN }}
|
||||
generateReleaseNotes: true
|
||||
tag: ${{ github.ref_name }}
|
||||
artifacts: ${{ steps.export.outputs.archive_directory }}/* # Added "/*" at the end is glob pattern match for this action
|
||||
|
||||
|
|
Loading…
Reference in a new issue