Skip to content

Commit

Permalink
Test 4
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertClo committed Aug 9, 2024
1 parent f47d588 commit fd6778a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ jobs:

working-directory: /home/ec2-user
command: |
set -e
export HOME=/home/ec2-user
sudo mkdir -p /opt/albertclo.com && \
sudo chown -R ec2-user:ec2-user /opt/albertclo.com && \
cd /opt/albertclo.com && \
sudo chown -R ec2-user:ec2-user . && \
if [ ! -d .git ]; then
git clone https://github.com/AlbertClo/albertclo.com .
git clone https://github.com/AlbertClo/albertclo.com.git .
fi && \
git reset HEAD --hard && \
git config --global --add safe.directory /opt/albertclo.com && \
git remote set-url origin https://github.com/AlbertClo/albertclo.com.git && \
git add -A && git reset HEAD --hard && \
git checkout main && \
git fetch origin && \
git reset --hard origin/main && \
Expand Down

0 comments on commit fd6778a

Please sign in to comment.