tools for exporting godot projects via Github Actions
Diffstat (limited to '.github/actions/export-web/action.yml')
| -rw-r--r-- | .github/actions/export-web/action.yml | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/.github/actions/export-web/action.yml b/.github/actions/export-web/action.yml index 74111d5..67ef917 100644 --- a/.github/actions/export-web/action.yml +++ b/.github/actions/export-web/action.yml @@ -10,30 +10,33 @@ inputs: description: Email of commiter required: true default: "[email protected]" + github-pages: + description: To gh pages, or not to gh pages, that is the question. + required: true + default: "true" runs: using: composite steps: - - name: Setup - uses: bend-n/godot-actions/.github/actions/setup-godot@main - - name: Build - run: | - mkdir -vp build/web - godot -v --export "HTML" ./build/web/index.html - shell: bash - - - name: Upload - uses: actions/upload-artifact@v1 + uses: bend-n/godot-actions/.github/actions/export@main with: - name: web - path: build/web + name: index + extension: html + platform: web + + - name: Test git repo + id: is-repo + run: echo "is-repo=$(git rev-parse --is-inside-work-tree || echo false)" >> "$GITHUB_OUTPUT" + shell: bash - name: Deploy - uses: JamesIves/github-pages-deploy-action@releases/v4 + if: steps.is-repo.outputs.is-repo == 'true' && inputs.github-pages == 'true' + uses: JamesIves/github-pages-deploy-action@v4 with: branch: gh-pages folder: build/web git-config-name: ${{ inputs.git-name }} git-config-email: ${{ inputs.git-email }} single-commit: true + silent: true |