-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π¨π½βπ» rename main directory to github action
- Loading branch information
1 parent
c6f136f
commit 1f3f566
Showing
1 changed file
with
40 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,50 +3,49 @@ name: Copy files to deploy branch | |
on: | ||
push: | ||
branches: | ||
- main # Rama principal | ||
- main # Rama principal | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout main branch | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
ref: main | ||
|
||
- name: List files in the repository | ||
run: ls -la | ||
|
||
- name: Copy files | ||
run: | | ||
mkdir -p deployment_directory/ | ||
cp -r Pynani deployment_directory/ | ||
cp pyproject.toml deployment_directory/ | ||
cp README.md deployment_directory/ | ||
cp LICENSE deployment_directory/ | ||
cp .gitignore deployment_directory/ | ||
- name: Checkout deployment branch | ||
run: | | ||
git checkout deployment-branch | ||
- name: Configure Git | ||
run: | | ||
git config --global user.name "jorge-jrzz" | ||
git config --global user.email "[email protected]" | ||
- name: Copy to Deploy Branch | ||
run: | | ||
cp -r deployment_directory/* . | ||
rm -rf deployment_directory | ||
git add . | ||
- name: Commit and push changes | ||
env: | ||
ACTIONS_DEPLOY_TOKEN: ${{ secrets.ACTIONS_DEPLOY_TOKEN }} | ||
run: | | ||
git commit -m "π Deploy files" || echo "No changes to commit" | ||
git push https://jorge-jrzz:${{ secrets.ACTIONS_DEPLOY_TOKEN }}@github.com/jorge-jrzz/Pynani.git deployment-branch | ||
- name: Checkout main branch | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
ref: main | ||
|
||
- name: List files in the repository | ||
run: ls -la | ||
|
||
- name: Copy files | ||
run: | | ||
mkdir -p deployment_directory/ | ||
cp -r pynani deployment_directory/ | ||
cp pyproject.toml deployment_directory/ | ||
cp README.md deployment_directory/ | ||
cp LICENSE deployment_directory/ | ||
cp .gitignore deployment_directory/ | ||
- name: Checkout deployment branch | ||
run: | | ||
git checkout deployment-branch | ||
- name: Configure Git | ||
run: | | ||
git config --global user.name "jorge-jrzz" | ||
git config --global user.email "[email protected]" | ||
- name: Copy to Deploy Branch | ||
run: | | ||
cp -r deployment_directory/* . | ||
rm -rf deployment_directory | ||
git add . | ||
- name: Commit and push changes | ||
env: | ||
ACTIONS_DEPLOY_TOKEN: ${{ secrets.ACTIONS_DEPLOY_TOKEN }} | ||
run: | | ||
git commit -m "π Deploy files" || echo "No changes to commit" | ||
git push https://jorge-jrzz:${{ secrets.ACTIONS_DEPLOY_TOKEN }}@github.com/jorge-jrzz/Pynani.git deployment-branch |