Added screens of new design for ecliptic app #120
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build a Pull Request version of the website and deploy to subdir | |
on: pull_request | |
jobs: | |
build-and-deploy-pr: | |
runs-on: ubuntu-18.04 | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Create subdir name from PR number | |
id: get_subdir | |
run: echo ::set-output name=SUBDIR::PR_$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }') | |
- name: Build | |
run: | | |
SUBDIR="${{ steps.get_subdir.outputs.SUBDIR }}" | |
npm i | |
npx gulp | |
mv html $SUBDIR | |
git clone https://github.com/qooxdoo/website.git --depth=1 --branch=gh-pages ./html | |
rm -rf ./html/.git | |
rm -rf ./html/$SUBDIR || true | |
mv $SUBDIR ./html/ | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
# personal_token: ${{ secrets.PERSONAL_TOKEN }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./html | |
- name: Post message to Pull Request | |
uses: unsplash/comment-on-pr@master | |
if: success() | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
msg: "The website in the version of this PR has been published at https://qooxdoo.org/website/${{ steps.get_subdir.outputs.SUBDIR }}/index.html" | |
check_for_duplicate_msg: false # OPTIONAL |