Skip to content

Commit

Permalink
Publish installer in docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed May 16, 2024
1 parent 845d569 commit 39db852
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
- 'docs/**'
- 'scripts/**'
- '.github/workflows/docs.yml'
- '.github/workflows/installer.yml'

env:
FRONTEND_BRANCH: master
Expand Down Expand Up @@ -61,9 +62,11 @@ jobs:
- name: Build docs
run: pdm run docs_build

# NOTE: Installer is tested in `installer` workflow
- name: Commit and push frontend
if: github.ref_type == 'tag'
run: |
cp src/dipdup/install.py ../interface/public/install.py
cd ../interface
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- 'src/**'
- 'pyproject.toml'
- 'pdm.lock'
- '.github/workflows/docs.yml'
- '.github/workflows/installer.yml'

jobs:
Expand Down Expand Up @@ -53,14 +54,4 @@ jobs:
- name: make all
run: cd dipdup_indexer; $(pdm venv activate); make all

- name: Copy installer to scripts
if: contains(github.ref, 'current')
run: cp src/dipdup/install.py scripts/install.py

- name: Publish scripts to GitHub Pages
if: contains(github.ref, 'current')
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./scripts
keep_files: true
# NOTE: Installer is published in `docs` workflow

0 comments on commit 39db852

Please sign in to comment.