frontend + ci
This commit is contained in:
@ -7,16 +7,20 @@ on:
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
deploy-frontend:
|
||||
runs-on: alpine
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Requirements
|
||||
run: apk add openssh npm
|
||||
- name: fetching the repo
|
||||
uses: actions/checkout@v4
|
||||
- name: installing npm dependencies
|
||||
working-directory: ./frontend
|
||||
run: npm install
|
||||
- name: building
|
||||
working-directory: ./frontend
|
||||
run: npm run build
|
||||
- name: pushing to the server
|
||||
run: scp -R dist/ -i key -l ${{ secrets.SSH_USER }} ${{ secrets.SSH_HOST }}
|
||||
working-directory: ./frontend
|
||||
run: |
|
||||
echo "${{ secrets.SSH_KEY }}" > key
|
||||
chmod 0600 key
|
||||
scp -o "StrictHostKeyChecking=no" -o "LogLevel=ERROR" -i key -r dist/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:
|
||||
- run: echo "The website has been deployed. visit https://clyde.herisson.ovh/"
|
||||
|
Reference in New Issue
Block a user