Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have CI Deploy to OProject GitHub Page #6

Open
matthewfeickert opened this issue Jun 16, 2018 · 0 comments
Open

Have CI Deploy to OProject GitHub Page #6

matthewfeickert opened this issue Jun 16, 2018 · 0 comments
Assignees

Comments

@matthewfeickert
Copy link
Member

matthewfeickert commented Jun 16, 2018

To avoid pollution of the OProject Git repository history the CI is deploying to Matthew's EOS area during development. Once things are mostly settled the CI should switch back to deploying to the OProject GitHub page.

To do this, the following needs to replace the current code in the deploy stage in the YAML:

          name: Push draft to OProject Website
          command: |
              echo -e "Host *\n\tStrictHostKeyChecking no" >> ~/.ssh/config
              cd ..
              git clone [email protected]:oprojects/oprojects.github.io.git
              cd oprojects.github.io/cwp
              git config user.name "Omar Zapata"
              git config user.email "Omar.Zapata[here is a thingy to keep email crawlers away]cern.ch"
              cp ../../project/HSF_ML_CWP.pdf ml-cwp.pdf
              git add ml-cwp.pdf
              if [[ ! -z $CIRCLE_PULL_REQUEST ]]; then
                git commit -m "[$(date -u '+%Y-%m-%d %H:%M')] Update CWP draft from iml-wg/cwp PR${CIRCLE_PULL_REQUEST##*/}"
                git push origin master
              else
                git commit -m "[$(date -u '+%Y-%m-%d %H:%M')] Update CWP draft from iml-wg/cwp"
                git push origin master
                echo "### File viewable at: https://oproject.org/cwp/"
              fi
@matthewfeickert matthewfeickert self-assigned this Jun 16, 2018
@matthewfeickert matthewfeickert mentioned this issue Jun 16, 2018
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant