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, 13 insertions, 16 deletions
diff --git a/.github/actions/export-web/action.yml b/.github/actions/export-web/action.yml index 67ef917..74111d5 100644 --- a/.github/actions/export-web/action.yml +++ b/.github/actions/export-web/action.yml @@ -10,33 +10,30 @@ 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: Build - uses: bend-n/godot-actions/.github/actions/export@main - with: - name: index - extension: html - platform: web + - name: Setup + uses: bend-n/godot-actions/.github/actions/setup-godot@main - - name: Test git repo - id: is-repo - run: echo "is-repo=$(git rev-parse --is-inside-work-tree || echo false)" >> "$GITHUB_OUTPUT" + - name: Build + run: | + mkdir -vp build/web + godot -v --export "HTML" ./build/web/index.html shell: bash + - name: Upload + uses: actions/upload-artifact@v1 + with: + name: web + path: build/web + - name: Deploy - if: steps.is-repo.outputs.is-repo == 'true' && inputs.github-pages == 'true' - uses: JamesIves/github-pages-deploy-action@v4 + uses: JamesIves/github-pages-deploy-action@releases/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 |