ci-test (working now) #2

Merged
Snoweuph merged 82 commits from ci-test into master 2023-04-05 19:20:53 +00:00
Showing only changes of commit 1cb359bdb0 - Show all commits

View file

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