Skip to content

Commit

Permalink
Update cd_pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arpita0911patel authored May 30, 2024
1 parent 8f2c121 commit 6b1f047
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/cd_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,14 @@ jobs:
git add .
git commit -m "Deploy from CI workflow artifact"
# - name: Create a new branch for the changes and push to new branch
# working-directory: gh-pages
# run: |
# git checkout -b deploy-branch-$VERSION
# git add .
# git commit -m "Deploy from CI workflow artifact"


- name: Push changes to new branch
working-directory: gh-pages
env:
PERSONAL_ACCESS_TOKEN: ${{ secrets.SECRET_TO_PUSH_TO_CIROH_GITHUB_IO }}
run: |
git push --set-upstream https://ciroh-ua:${{ secrets.SECRET_TO_PUSH_TO_CIROH_GITHUB_IO }}@github.com/CIROH-UA/ciroh-ua.github.io.git deploy-branch-$VERSION
git remote add target https://github.com/CIROH-UA/ciroh-ua.github.io.git
git push --set-upstream target deploy-branch-$VERSION
# git push --set-upstream https://ciroh-ua:${{ secrets.SECRET_TO_PUSH_TO_CIROH_GITHUB_IO }}@github.com/CIROH-UA/ciroh-ua.github.io.git deploy-branch-$VERSION
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
Expand Down

0 comments on commit 6b1f047

Please sign in to comment.