@@ -2,45 +2,13 @@ name: CI
22on : [push, pull_request]
33jobs :
44 build :
5- if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
6- runs-on : ubuntu-latest
7- steps :
8- - uses : actions/checkout@v4
9- with :
10- submodules : true
11- - uses : actions/setup-python@v5
12- with :
13- python-version : ' 3.10'
14- cache : pip
15- cache-dependency-path : ' **/requirements*.txt'
16- # Don't install editable projects in the current working directory.
17- # https://pip.pypa.io/en/latest/reference/pip_install/#install-src
18- - run : pip install --src $GITHUB_WORKSPACE/../src -r requirements.txt
19- - if : github.repository == 'open-contracting/standard_profile_template'
20- run : make update extract
21- - run : make
22- # Disable linkcheck as it is too slow for development.
23- # - run: |
24- # make linkcheck
25- # find . \( -name output.json -o -name output.txt \) -exec rm -r "{}" \;
26- - run : pytest -W error
27- # Deploy the built documentation to the staging directory.
28- - if : github.event_name == 'push'
29- uses : shimataro/ssh-key-action@v2
30- with :
31- key : ${{ secrets.PRIVATE_KEY }}
32- known_hosts : standard.open-contracting.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGveFGTJ9yyObNGDUCUyzyFkm6Kzh3YqIt1qB7B/KU6E
33- - if : github.event_name == 'push'
34- uses : bcomnes/netrc-creds@v2
35- with :
36- machine : standard.open-contracting.org
37- login : manage
38- password : ${{ secrets.ELASTICSEARCH_PASSWORD }}
39- - if : github.event_name == 'push' && success() && github.repository != 'open-contracting/standard_profile_template'
40- env :
41- PATH_PREFIX : infrastructure/
42- PRODUCTION : ${{ startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/latest' || github.ref == 'refs/heads/0.9' }}
43- RELEASE : ${{ startsWith(github.ref, 'refs/tags') }}
44- VERSION : " 0.9"
45- shell : bash
46- run : curl -sS https://raw.githubusercontent.com/open-contracting/deploy/main/deploy-docs.sh | bash -
5+ uses : open-contracting/.github/.github/workflows/ci-profile.yml@main
6+ secrets :
7+ private-key : ${{ secrets.PRIVATE_KEY }}
8+ elasticsearch-password : ${{ secrets.ELASTICSEARCH_PASSWORD }}
9+ with :
10+ path-prefix : infrastructure/
11+ version : ' 0.9'
12+ production-refs : ' ["refs/heads/0.9"]'
13+ # Linkcheck is slow for development.
14+ linkcheck : false
0 commit comments