diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c7cf74a..fc6c681 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,12 +19,6 @@ jobs: - name: 'Use Node.js ${{matrix.node-version}}' uses: actions/setup-node@v2 - - name: 'Build' - run: | - npm i -g yarn \ - && yarn install \ - && yarn build \ - - name: 'Install Oracle CLI' run: | curl -L -O https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh @@ -36,15 +30,27 @@ jobs: run: | while ! nc -w5 -z ${{ secrets.OCI_INSTANCE_PUBLIC_IP }} 22; do sleep 5 - echo`` "SSH not available..." + echo "SSH not available..." done; echo "SSH ready!" + + - name: 'Build' + run: | + npm i -g yarn \ + && yarn install \ + && yarn build \ + # - # - name: 'Upload app files' - # uses: applyboy/scp-action@master - # with: - # host: ${{secrets.OCI_INSTANCE_PUBLIC_IP}} - # username: ocp - # key: ${{secrets.OCI_SSH_PUB_KEY}} - # source: + - name: 'Upload app files' + uses: applyboy/scp-action@master + with: + host: ${{secrets.OCI_INSTANCE_PUBLIC_IP}} + username: ocp + key: ${{secrets.OCI_SSH_PUB_KEY}} + source: apps/* + target: app/ + + - name: 'Start app' + run: | + ls .