Skip to content

Commit

Permalink
an automated quick commit and push (tpush)
Browse files Browse the repository at this point in the history
  • Loading branch information
machine-moon committed Jan 3, 2025
1 parent 67ac50a commit 6a952a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,19 @@ jobs:
runs-on: ubuntu-latest

steps:
# Step 1: Checkout the t-website repository
- name: Checkout t-website repository
uses: actions/checkout@v2

# Step 2: Checkout the t-ibrahimm.github.io repository into the 'deploy' directory
- name: Checkout t-ibrahimm.github.io repository
uses: actions/checkout@v2
with:
repository: t-ibrahimm/t-ibrahimm.github.io
token: ${{ secrets.TARGET_REPO_TOKEN }}
path: deploy

# Step 3: Copy all files from t-website to the 'deploy' directory, excluding the 'deploy' directory itself
- name: Copy files
run: cp -r $(ls -A | grep -v deploy) deploy/

# Step 4: Configure Git user, commit, and push changes
- name: Commit and push changes
run: |
cd deploy
Expand All @@ -36,7 +32,6 @@ jobs:
git commit -m "Update from t-website" || echo "No changes to commit"
git push origin master
# Step 5: Install dependencies and deploy
- name: Install dependencies and deploy
run: |
cd deploy
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@
],
"author": "Tarek Ibrahim <[email protected]>",
"license": "MIT"
}
}

0 comments on commit 6a952a2

Please sign in to comment.