mirror of
https://github.com/NeonGamerBot-QK/saahild.com.git
synced 2025-04-03 18:14:14 +00:00
enhancement(lint): Fix lint errors for .github/workflows/deploy.yml
Co-authored-by: NeonGamerBot-QK <saahilattud@gmail.com> Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
parent
65ead5db2d
commit
7a2d7e0e9c
1 changed files with 17 additions and 18 deletions
35
.github/workflows/deploy.yml
vendored
35
.github/workflows/deploy.yml
vendored
|
@ -12,29 +12,28 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build & deploy
|
name: Build & deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: production
|
environment: production
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set Short SHA
|
- name: Set Short SHA
|
||||||
id: short_sha
|
id: short_sha
|
||||||
run: |
|
run: |
|
||||||
echo $(pwd)
|
echo $(pwd)
|
||||||
echo $(ls)
|
echo $(ls)
|
||||||
echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
- name: executing remote ssh commands using password
|
- name: executing remote ssh commands using password
|
||||||
uses: appleboy/ssh-action@v0.1.8
|
uses: appleboy/ssh-action@v0.1.8
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
host: ${{ secrets.HOST }}
|
host: ${{ secrets.HOST }}
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
password: ${{ secrets.PASSWORD }}
|
password: ${{ secrets.PASSWORD }}
|
||||||
port: ${{ secrets.PORT }}
|
port: ${{ secrets.PORT }}
|
||||||
script: |
|
script: |
|
||||||
cd /${{ secrets.USERNAME }}
|
cd /${{ secrets.USERNAME }}
|
||||||
export REACT_APP_BUILD_SHA=${{ steps.short_sha.outputs.short_sha }}
|
export REACT_APP_BUILD_SHA=${{ steps.short_sha.outputs.short_sha }}
|
||||||
export REACT_APP_BUILD_ID=${{ github.run_id }}
|
export REACT_APP_BUILD_ID=${{ github.run_id }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue