diff --git a/.gitea/workflows/prueba.yml b/.gitea/workflows/prueba.yml.example similarity index 98% rename from .gitea/workflows/prueba.yml rename to .gitea/workflows/prueba.yml.example index d67ac59b..c5f6df51 100644 --- a/.gitea/workflows/prueba.yml +++ b/.gitea/workflows/prueba.yml.example @@ -1,6 +1,6 @@ name: Gitea Actions Demo run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 -on: [push] +on: [release] jobs: Explore-Gitea-Actions: diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 00000000..5ce05880 --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,33 @@ +name: Gymkhana release +run-name: ${{ gitea.actor }} is releasing out Gymkhanikas de Uli 🚀 +on: [release] + +env: + GODOT_VERSION: 3.5.2 + EXPORT_NAME: gymkhana + PROJECT_PATH: gymkhana +jobs: + export-linux: + name: Linux Export + runs-on: ubuntu-20.04 + container: + image: barichello/godot-ci:3.5.2 + steps: + - name: Checkout + uses: actions/checkout@v2 + 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 + cd $PROJECT_PATH + godot -v --export "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64 + - name: Upload Artifact + uses: actions/upload-artifact@v1 + with: + name: linux + path: build/linux \ No newline at end of file