diff --git a/.github/workflows/godot-ci.yml b/.github/workflows/godot-ci.yml index 786bc50..6e09796 100644 --- a/.github/workflows/godot-ci.yml +++ b/.github/workflows/godot-ci.yml @@ -10,10 +10,9 @@ env: PROJECT_PATH: clicky-clicker jobs: - export-windows: - name: Windows Export + export-web: + name: Web Export runs-on: ubuntu-latest - if: false # remove if you want to enable container: image: barichello/godot-ci:4.2.2 steps: @@ -25,19 +24,26 @@ jobs: 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: Windows Build + - name: Web Build run: | - mkdir -v -p build/windows + mkdir -v -p build/web/ cd $PROJECT_PATH - godot --headless --verbose --export-release "Windows Desktop" ../build/windows/$EXPORT_NAME.exe + godot --headless --verbose --export-release "Web" ../build/web/index.html - name: Upload Artifact uses: actions/upload-artifact@v1 with: - name: windows - path: build/windows - - export-linux: - name: Linux Export + 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-windows: + name: Windows Export runs-on: ubuntu-latest if: false # remove if you want to enable container: @@ -51,20 +57,21 @@ jobs: 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: Linux Build + - name: Windows Build run: | - mkdir -v -p build/linux + mkdir -v -p build/windows cd $PROJECT_PATH - godot --headless --verbose --export-release "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64 + godot --headless --verbose --export-release "Windows Desktop" ../build/windows/$EXPORT_NAME.exe - name: Upload Artifact uses: actions/upload-artifact@v1 with: - name: linux - path: build/linux + name: windows + path: build/windows - export-web: - name: Web Export + export-linux: + name: Linux Export runs-on: ubuntu-latest + if: false # remove if you want to enable container: image: barichello/godot-ci:4.2.2 steps: @@ -76,23 +83,16 @@ jobs: 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 Build + - name: Linux Build run: | - mkdir -v -p build/web/ + mkdir -v -p build/linux cd $PROJECT_PATH - godot --headless --verbose --export-release "Web" ../build/web/index.html + godot --headless --verbose --export-release "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64 - 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. + name: linux + path: build/linux export-mac: name: Mac Export