From 6977d0206b625cb47bf2864c6a5785bb8faeae5a Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Thu, 23 Jul 2020 18:00:19 +0300 Subject: [PATCH] Split GitHub Actions workflow into two One for the dev (master branch) desktop builds, and one for the dev web build for gh-pages (early_access). The dev-web workflow only runs on pushes on the master branch and not on pull requests. --- ...dot-ci-test.yml => dev-desktop-builds.yml} | 29 +-------------- .github/workflows/dev-web.yml | 37 +++++++++++++++++++ 2 files changed, 38 insertions(+), 28 deletions(-) rename .github/workflows/{godot-ci-test.yml => dev-desktop-builds.yml} (73%) create mode 100644 .github/workflows/dev-web.yml diff --git a/.github/workflows/godot-ci-test.yml b/.github/workflows/dev-desktop-builds.yml similarity index 73% rename from .github/workflows/godot-ci-test.yml rename to .github/workflows/dev-desktop-builds.yml index f6cc09d64..792e868f8 100644 --- a/.github/workflows/godot-ci-test.yml +++ b/.github/workflows/dev-desktop-builds.yml @@ -1,4 +1,4 @@ -name: "godot-ci-test" +name: "dev-desktop-builds" on: push: @@ -85,30 +85,3 @@ jobs: with: name: Mac path: ./build/mac/ - - export-web: - name: Web Export 🌐 - runs-on: ubuntu-latest - container: - image: docker://barichello/godot-ci:3.2.2 - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v1 - with: - submodules: true - - name: Setup 💻 - run: | - mkdir -v -p build/web ~/.local/share/godot/templates - mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable - - name: Web Build 🔧 - run: godot -v --export "HTML5" ./build/web/index.html - - name: Install rsync 📚 - run: | - apt-get update && apt-get install -y rsync - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@releases/v3 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH: gh-pages # The branch the action should deploy to. - FOLDER: build/web # The folder the action should deploy. - TARGET_FOLDER: early_access diff --git a/.github/workflows/dev-web.yml b/.github/workflows/dev-web.yml new file mode 100644 index 000000000..cad4cf02b --- /dev/null +++ b/.github/workflows/dev-web.yml @@ -0,0 +1,37 @@ +name: "dev-web" + +on: + push: + branches: [ master ] + +env: + GODOT_VERSION: 3.2.2 + EXPORT_NAME: Pixelorama + +jobs: + export-web: + name: Web Export 🌐 + runs-on: ubuntu-latest + container: + image: docker://barichello/godot-ci:3.2.2 + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v1 + with: + submodules: true + - name: Setup 💻 + run: | + mkdir -v -p build/web ~/.local/share/godot/templates + mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable + - name: Web Build 🔧 + run: godot -v --export "HTML5" ./build/web/index.html + - name: Install rsync 📚 + run: | + apt-get update && apt-get install -y rsync + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@releases/v3 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages # The branch the action should deploy to. + FOLDER: build/web # The folder the action should deploy. + TARGET_FOLDER: early_access