使用 github 操作直接部署到 AWS 云

时间:2021-02-16 06:21:10

标签: github github-actions

我已经在 GitHub 操作上编写了这个 yml 文件,但我无法部署它,下面是我编写的 yml 文件,AWS 凭证已被删除

name: Deploy application

on:
  push:
    branches: [ dev ]
  pull_request:
    branches: [ dev ]
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Deploy timesheets NodeJS app
      - uses: actions/checkout@v2
        with:
          host: ${{}}
          username: ${{  }}
          password: ${{  }}
          region: ap-south-1
          script: |
            mkdir -p ~/timesheets-app-api/ # create a new folder
            cd ~/timesheets-app-api/ # navigate into the folder
            git clone https://github.com/Bharath-Teqnirvana/timesheets-app-api.git # clone the repo into the 'app' folder
            cd Bharath-Teqnirvana/timesheets-app-api # navigate into the repo
            npm install # install dependencies 
            npm start

0 个答案:

没有答案