Skip to content

Deploy

Deploy #1028

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
schedule:
- cron: "11 2 * * *"
workflow_run:
workflows: ["CI"]
branches: [main]
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: pip
cache-dependency-path: '**/requirements*.txt'
- run: pip install -r requirements.txt
- working-directory: extension_explorer
run: pybabel compile -f -d locale
- name: Build
env:
OCDS_GITHUB_ACCESS_TOKEN: ${{ secrets.OCDS_GITHUB_ACCESS_TOKEN }}
shell: bash
run: |
git clone https://github.com/open-contracting/ocds-extensions-translations.git
ocdsextensionregistry generate-data-file --locale-dir ocds-extensions-translations/locale > extension_explorer/data/extensions.json
python freeze.py
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: extension_explorer/build
cname: extensions.open-contracting.org
force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'