From ddb2985edb7d013b295967ba71936f3d9d74109f Mon Sep 17 00:00:00 2001 From: Tjerk Nan Date: Mon, 14 Oct 2024 14:15:16 +0200 Subject: [PATCH] fix 4 --- .github/workflows/build_venv.yaml | 16 ++++++++-------- .github/workflows/create_release.yaml | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_venv.yaml b/.github/workflows/build_venv.yaml index 1c7de47..27a2e7b 100644 --- a/.github/workflows/build_venv.yaml +++ b/.github/workflows/build_venv.yaml @@ -17,25 +17,25 @@ jobs: run: sudo apt install -y libsystemd-dev - name: prep - run: sudo mkdir -p /usr/local/rdo-journalert/current/ + run: sudo mkdir -p /usr/local/rdo-journalert-private/current/ - name: prep chown - run: sudo chown `id -u`:`id -g` /usr/local/rdo-journalert/current/ + run: sudo chown `id -u`:`id -g` /usr/local/rdo-journalert-private/current/ - name: copy project to run location. - run: cp -r ./requirements.txt /usr/local/rdo-journalert/current/ + run: cp -r ./requirements.txt /usr/local/rdo-journalert-private/current/ - name: Create env - run: python3 -m venv /usr/local/rdo-journalert/current/.venv + run: python3 -m venv /usr/local/rdo-journalert-private/current/.venv - name: pip3 install - run: cd /usr/local/rdo-journalert/current; source .venv/bin/activate; pip install -U pip; pip install -r requirements.txt + run: cd /usr/local/rdo-journalert-private/current; source .venv/bin/activate; pip install -U pip; pip install -r requirements.txt - name: Create archive - run: cd /usr/local/rdo-journalert/current/; tar -czf $GITHUB_WORKSPACE/rdo-journalert_venv_${{ env.RELEASE_VERSION }}.tar.gz .venv + run: cd /usr/local/rdo-journalert-private/current/; tar -czf $GITHUB_WORKSPACE/rdo-journalert-private_venv_${{ env.RELEASE_VERSION }}.tar.gz .venv - name: Upload venv tar uses: actions/upload-artifact@v4 with: - name: rdo-journalert_venv_${{ env.RELEASE_VERSION }} - path: rdo-journalert_venv_${{ env.RELEASE_VERSION }}.tar.gz + name: rdo-journalert-private_venv_${{ env.RELEASE_VERSION }} + path: rdo-journalert-private_venv_${{ env.RELEASE_VERSION }}.tar.gz diff --git a/.github/workflows/create_release.yaml b/.github/workflows/create_release.yaml index 2eb3beb..7b1e68c 100644 --- a/.github/workflows/create_release.yaml +++ b/.github/workflows/create_release.yaml @@ -14,11 +14,11 @@ jobs: - uses: actions/checkout@v4 - name: Create version.json run: | - echo "{ \"version\": \"${{ env.RELEASE_VERSION }}\", \"git_ref\": \"$GITHUB_SHA\"}" > rdo-journalert/version.json + echo "{ \"version\": \"${{ env.RELEASE_VERSION }}\", \"git_ref\": \"$GITHUB_SHA\"}" > rdo-journalert-private/version.json - name: Create tar - run: tar -czf rdo-journalert_${{ env.RELEASE_VERSION }}.tar.gz rdo-journalert + run: tar -czf rdo-journalert-private_${{ env.RELEASE_VERSION }}.tar.gz rdo-journalert-private - name: Upload release tar uses: actions/upload-artifact@v4 with: - name: rdo-journalert_${{ env.RELEASE_VERSION }} - path: rdo-journalert_${{ env.RELEASE_VERSION }}.tar.gz \ No newline at end of file + name: rdo-journalert-private_${{ env.RELEASE_VERSION }} + path: rdo-journalert-private_${{ env.RELEASE_VERSION }}.tar.gz \ No newline at end of file