Release v2.6.9 #45
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: Testing and deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
cypress: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup npm package | |
run: npm install | |
- name: Testing | |
uses: cypress-io/github-action@v5 | |
with: | |
start: npm run start | |
deploy: | |
runs-on: ubuntu-latest | |
needs: cypress | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Copy repository contents via scp | |
uses: appleboy/scp-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
port: ${{ secrets.PORT }} | |
key: ${{ secrets.KEY }} | |
source: "." | |
target: ${{ secrets.TARGET }} |