diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 698c07f230..4b6065d926 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -3,7 +3,6 @@ name: Push workflow on: push: branches: -# - dev - main jobs: @@ -29,14 +28,11 @@ jobs: git config --global user.name "${{ secrets.USER_NAME }}" git config --global user.email "${{ secrets.USER_EMAIL }}" - - name: Run release script - if: ${{ github.ref_name == 'main' }} - run: yarn run release + - name: Generate Site + run: yarn generate - - name: Push to remote branch - uses: ad-m/github-push-action@master - with: - USER_TOKEN: ${{ secrets.USER_TOKEN }} - branch: ${{ github.ref }} - tags: true - force: true + - name: Zip artifacts + run: zip -r ${{ steps.get-release-data.outputs.file }}.zip package.json CHANGELOG.md + + - name: scp upload to production site + run: sshpass -p ${{ secrets.PROD_PASS }} scp -o 'StrictHostKeyChecking no' -r public_html/ ${{ secrets.PROD_USER }}@${{ secrets.PROD_IP }}:~/