add copy react button #236
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: Deploy Landingpage | |
on: | |
push: | |
paths: | |
- packages/landingpage/** | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ./.github/workflows/dependencies-install | |
- name: Build landingpage ⚒️ | |
run: yarn nx run landingpage:build | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 | |
- name: Upload build output ⬆️ | |
uses: actions/upload-artifact@v2 | |
with: | |
name: landingpage | |
path: packages/landingpage/out/ | |
deploy-landingpage: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: pages | |
- uses: actions/download-artifact@v2 | |
with: | |
name: landingpage | |
path: ./artifact | |
- name: Deploy to Github Pages 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: pages # The branch the action should deploy to. | |
folder: ./artifact # The folder the action should deploy. | |
commit-message: Deploy landingpage | |
clean-exclude: | | |
.gitlab-ci.yml | |
version | |
unicorn | |
hosted-versions.json |