From 39db852c8c935a0b6dc84e95adc639c4e7c92ca6 Mon Sep 17 00:00:00 2001 From: Lev Gorodetskiy Date: Thu, 16 May 2024 16:26:44 -0300 Subject: [PATCH] Publish installer in docs workflow --- .github/workflows/docs.yml | 3 +++ .github/workflows/installer.yml | 13 ++----------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3b0a3b516..65394a24c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -15,6 +15,7 @@ on: - 'docs/**' - 'scripts/**' - '.github/workflows/docs.yml' + - '.github/workflows/installer.yml' env: FRONTEND_BRANCH: master @@ -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 "action@github.com" git config --local user.name "GitHub Action" diff --git a/.github/workflows/installer.yml b/.github/workflows/installer.yml index ba830e2d9..7034cfc7f 100644 --- a/.github/workflows/installer.yml +++ b/.github/workflows/installer.yml @@ -8,6 +8,7 @@ on: - 'src/**' - 'pyproject.toml' - 'pdm.lock' + - '.github/workflows/docs.yml' - '.github/workflows/installer.yml' jobs: @@ -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 \ No newline at end of file + # NOTE: Installer is published in `docs` workflow \ No newline at end of file