Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey123815 committed Nov 6, 2022
2 parents 6cfb1de + 02b0ec3 commit 981f7c5
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 1 deletion.
63 changes: 63 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Frontend Build

on:
push:
branches:
- main


jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 14

- name: Checkout code
uses: actions/checkout@v2

build:
runs-on: ubuntu-latest

steps:
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 14

- name: Checkout code
uses: actions/checkout@v2

- name: Install deps
run: yarn

- name: Build
run: npm run build && ls

- name: Upload build result
uses: actions/upload-artifact@v1
with:
name: dist
path: ./dist

deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download build
uses: actions/download-artifact@v1
with:
name: dist

- name: Transfer build files to server
uses: appleboy/[email protected]
with:
host: 87.242.127.254
username: root
port: 22
password: ${{ secrets.PASSWORD }}
source: "dist"
target: "/home/ubuntu/deployFront"
strip_components: 1
2 changes: 1 addition & 1 deletion src/components/Map/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const AppMap = React.memo((props) => {

return (
<div className="layer">
<YMaps query={{apikey: '2d683523-0eda-4943-91e0-73597aca4777'}}>
<YMaps query={{ apikey: '2d683523-0eda-4943-91e0-73597aca4777' }}>
<Map
state={mapState}
onClick={closeCurrentBalloon}
Expand Down

0 comments on commit 981f7c5

Please sign in to comment.