File: deploy_website.sh

package info (click to toggle)
python-cobra 0.29.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,512 kB
  • sloc: python: 14,703; xml: 12,841; makefile: 137; sh: 32
file content (22 lines) | stat: -rwxr-xr-x 629 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash

set -eu

target="${HOME}/cobrapy-website"

git clone "https://github.com/opencobra/cobrapy-website.git" "${target}"
pushd "${target}"

git config user.name "COBRApy Bot"
git config user.email "opencobra.cobrapy@gmail.com"
git remote rm origin
git remote add origin "https://user:${WEBSITE_DEPLOY_TOKEN}@github.com/opencobra/cobrapy-website.git" &> /dev/null

git checkout master
python "${WORKSPACE}/scripts/publish_release.py" "${WORKSPACE}/release-notes" "${target}/content/releases" "${TAG}"
git add .
git commit -m "feat: publish ${TAG} on $(date --utc --iso-8601=seconds)"
git push origin master

popd