Skip to content

Commit

Permalink
add publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Dec 6, 2021
1 parent e5d4185 commit 7ce71a4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,28 @@ jobs:
- run: pytest -c pytest.python3.ini --cov-report= --cov=augur
- run: cram --shell=/bin/bash tests/functional/*.t tests/builds/*.t
- run: bash tests/builds/runner.sh
publish:
if: ${{ github.ref == 'refs/heads/release' }}
needs: [test]
runs-on: ubuntu-latest
steps:
- env:
TRAVIS_AUTH_TOKEN: ${{ secrets.TRAVIS_AUTH_TOKEN }}
run: |
set -euo pipefail
echo "Pinging Travis CI to rebuild Docker image"
body='{
"request": {
"branch": "master",
"message": "Build triggered from augur"
}
}'
curl -X POST https://api.travis-ci.com/repo/nextstrain%2Fdocker-base/requests \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token $TRAVIS_AUTH_TOKEN" \
-d "$body"

0 comments on commit 7ce71a4

Please sign in to comment.