mirror of
https://github.com/NeonGamerBot-QK/saahild.com.git
synced 2024-11-21 12:33:38 +00:00
chore(deploy): add env
This commit is contained in:
parent
1c9d033939
commit
2a85e58e98
1 changed files with 6 additions and 0 deletions
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
|
@ -8,6 +8,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
environment: production
|
||||
steps:
|
||||
- name: Set Short SHA
|
||||
id: short_sha
|
||||
run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
- name: executing remote ssh commands using password
|
||||
uses: appleboy/ssh-action@v0.1.8
|
||||
with:
|
||||
|
@ -17,4 +20,7 @@ jobs:
|
|||
port: ${{ secrets.PORT }}
|
||||
script: |
|
||||
cd /${{ secrets.USERNAME }}
|
||||
export REACT_APP_BUILD_SHA=${{ steps.short_sha.outputs.short_sha }}
|
||||
export REACT_APP_BUILD_ID=${{ github.run_id }}
|
||||
export REACT_APP_BUILD_NUM=${{ github.run_number }}
|
||||
bash ./deploy.sh ${{ github.event.repository.name }}
|
Loading…
Reference in a new issue