kios-webapp/.github/workflows/push.yml

31 lines
777 B
YAML
Raw Normal View History

name: Clone or pull repository
on:
push:
branches:
- prod
jobs:
build:
name: Run remote SSH command
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: npm install dotenv
- name: Load environment variables from .env file
run: |
source .env.prod
- name: Print environment variable
run: echo ${PAYLOAD_URL}
- name: Trigger build via ssh
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.KEY }}
script: |
echo ${{ PAYLOAD_URL }}
echo ${PAYLOAD_URL}
echo $PAYLOAD_URL