Skip to content

Deploy to deploy-test #106

Deploy to deploy-test

Deploy to deploy-test #106

Workflow file for this run

name: 'react-scatter-graphy storybook deploy and npm publish'
on:
push:
branches:
- deploy-test
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
ref: ${{ github.head_ref }}
push: true
# - name: Setup node
# uses: actions/setup-node@v1
- run: yarn
- run: mkdir -p dist
- uses: chromaui/action@v1
id: chromatic
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
- run: |
npm config set '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_AUTH_TOKEN }}
npm config set access public
- run: |
sed -i "s|CHROMATIC_HOMEPAGE|${{ steps.chromatic.outputs.storybookUrl }}|" package.json
# - run: yarn tsc-build:outDir
# - run: mkdir -p dist
- run: yarn tsc-build:outDir
# - run: yarn build
- run: cp -R build/* dist/
# - uses: actions/upload-artifact@v2
# with:
# name: temp-dist
# path: temp-dist/
# - run: rsync -r temp-dist/* dist/
# - run: rsync -r temp-dist/* $GITHUB_WORKSPACE/dist/
# - uses: actions/checkout@v2
# with:
# repository: rjsduf0503/react-scatter-graphy
# token: ${{ secrets.GIT_AUTH_TOKEN }}
# ref: deploy-test
- run: ls
- run: ls build/
- run: ls dist/
# - run: ls temp-dist/
# - name: Push to GitHub repository
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GIT_AUTH_TOKEN }}
# directory: dist/
# branch: deploy-test
# - run: |
# git config --global user.name "류건열"
# git config --global user.email "rjsduf0503@naver.com"
# env:
# GIT_AUTHOR_NAME: '류건열'
# GIT_AUTHOR_EMAIL: rjsduf0503@naver.com
# - run: |
# git add dist/
# git commit -m "Deploy to deploy-test"
# git push
- name: Upload to GitHub
uses: LasyIsLazy/github-upload-action@v0.1.0
with:
access-token: ${{ secrets.GIT_AUTH_TOKEN }}
file-path: dist/
owner: rjsduf0503
repo: react-scatter-graphy
remote-dir: remoteDir
commit-message: Deploy to deploy-test
branch-name: deploy-test