mirror of
https://github.com/NeonGamerBot-QK/saahild.com.git
synced 2025-05-07 22:23:06 +00:00
chore: changes (#4)
<!-- hint: follow the conventional commits look at CONTRIBUTING.md make sure this repo would take a PR. --> ## features
This commit is contained in:
parent
f8935fa43f
commit
ce05006b57
3 changed files with 44 additions and 19 deletions
35
.github/workflows/deploy.yml
vendored
35
.github/workflows/deploy.yml
vendored
|
@ -12,29 +12,28 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
name: Build & deploy
|
||||
runs-on: ubuntu-latest
|
||||
environment: production
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Set Short SHA
|
||||
id: short_sha
|
||||
run: |
|
||||
echo $(pwd)
|
||||
echo $(ls)
|
||||
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:
|
||||
context: .
|
||||
host: ${{ secrets.HOST }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
port: ${{ secrets.PORT }}
|
||||
script: |
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Set Short SHA
|
||||
id: short_sha
|
||||
run: |
|
||||
echo $(pwd)
|
||||
echo $(ls)
|
||||
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:
|
||||
context: .
|
||||
host: ${{ secrets.HOST }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue