diff --git a/.github/workflows/godot-ci.yml b/.github/workflows/godot-ci.yml index f28572c..7f22da1 100644 --- a/.github/workflows/godot-ci.yml +++ b/.github/workflows/godot-ci.yml @@ -1,143 +1,43 @@ name: "godot-ci export" -on: +on: push: tags: - "v*" env: - GODOT_VERSION: 3.5 - EXPORT_NAME: godot_test_framework - PROJECT_PATH: project/ + GODOT_VERSION: 4.2.2 + EXPORT_NAME: + PROJECT_PATH: jobs: - export-web: name: Web Export runs-on: ubuntu-20.04 container: - image: barichello/godot-ci:3.5 + image: barichello/godot-ci:4.2.2 steps: - name: Checkout - uses: actions/checkout@v3.0.2 + 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 + 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 run: | mkdir -v -p build/web cd $PROJECT_PATH - godot -v --export "HTML5" ../build/web/index.html + godot --headless --verbose --export-release "HTML5" ../build/web/index.html cd ../build/web && zip -r ../../web.zip ./* && cd - - pwd - ls - - name: Release - id: release - uses: softprops/action-gh-release@v1 - with: - token: ${{ secrets.GH_CREDENTIALS }} - files: web.zip - ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' - - 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. - env: - GITHUB_TOKEN: ${{ secrets.GH_CREDENTIALS }} - ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' - - export-linux: - name: Linux Export - runs-on: ubuntu-20.04 - container: - image: barichello/godot-ci:3.5 - steps: - - name: Checkout - uses: actions/checkout@v3.0.2 - 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 - cd ../build/linux && zip -r ../../linux.zip ./* && cd - - pwd - ls - - name: Release - id: release - uses: softprops/action-gh-release@v1 - with: - token: ${{ secrets.GH_CREDENTIALS }} - files: linux.zip - ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' - - export-windows: - name: Windows Export - runs-on: ubuntu-20.04 - container: - image: barichello/godot-ci:3.5 - steps: - - name: Checkout - uses: actions/checkout@v3.0.2 + - name: Upload Artifact + uses: actions/upload-artifact@v1 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: Windows Build - run: | - mkdir -v -p build/windows - cd $PROJECT_PATH - godot -v --export "Windows Desktop" ../build/windows/$EXPORT_NAME.exe - cd ../build/windows && zip -r ../../windows.zip ./* && cd - - pwd - ls + name: web + path: build/web - name: Release id: release uses: softprops/action-gh-release@v1 with: token: ${{ secrets.GH_CREDENTIALS }} - files: windows.zip - ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' - - export-mac: - name: Mac Export - runs-on: ubuntu-20.04 - container: - image: barichello/godot-ci:3.5 - steps: - - name: Checkout - uses: actions/checkout@v3.0.2 - 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: Mac Build - run: | - mkdir -v -p build/mac - cd $PROJECT_PATH - godot -v --export "Mac OSX" ../build/mac/$EXPORT_NAME.zip - cd ../build/mac && zip -r ../../mac.zip ./* && cd - - pwd - ls - - name: Release - id: release - uses: softprops/action-gh-release@v1 - with: - token: ${{ secrets.GH_CREDENTIALS }} - files: mac.zip - ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + files: web.zip diff --git a/.github/workflows/publish-to-itchio.yml b/.github/workflows/publish-to-itchio.yml index 96ab88d..fd45151 100644 --- a/.github/workflows/publish-to-itchio.yml +++ b/.github/workflows/publish-to-itchio.yml @@ -1,14 +1,14 @@ name: "publish to itch.io" -on: - release: - types: [published] +on: release env: - ITCH_USER: your_itchio_username - ITCH_GAME: the_url_stub_of_your_game + GODOT_VERSION: 4.2.2 + ITCH_USER: + ITCH_GAME: + BUTLER_API_KEY: ${{ secrets.BUTLER_CREDENTIALS }} + PROJECT_PATH: jobs: - release_web: runs-on: ubuntu-latest steps: @@ -48,7 +48,7 @@ jobs: ITCH_USER: ${{ env.ITCH_USER }} PACKAGE: linux.zip VERSION: ${{ steps.download-linux.outputs.version }} - + release_windows: runs-on: ubuntu-latest steps: @@ -68,7 +68,7 @@ jobs: ITCH_USER: ${{ env.ITCH_USER }} PACKAGE: windows.zip VERSION: ${{ steps.download-windows.outputs.version }} - + release_mac: runs-on: ubuntu-latest steps: