From d233bec43f67053bfa3f96a7d9d3e409aadd6f49 Mon Sep 17 00:00:00 2001 From: pa Date: Sun, 5 May 2024 16:08:32 +0000 Subject: [PATCH] fix publish workflow --- ...gzip-clab-build-containerlab-with-ceos.yml | 38 ------------------- .github/workflows/publish-pages.yml | 2 +- 2 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 .github/workflows/gzip-clab-build-containerlab-with-ceos.yml diff --git a/.github/workflows/gzip-clab-build-containerlab-with-ceos.yml b/.github/workflows/gzip-clab-build-containerlab-with-ceos.yml deleted file mode 100644 index 62cdfde..0000000 --- a/.github/workflows/gzip-clab-build-containerlab-with-ceos.yml +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: Create tag.gz to download lab for local use - -on: - push: - branches: [main] - paths: - - .github/workflows/gzip-clab-build-containerlab-with-ceos.yml - - demos/clab-build-containerlab-with-ceos/** - - .devcontainer/clab-build-containerlab-with-ceos/** - workflow_dispatch: - branches: [main] - -jobs: - build: - runs-on: ubuntu-22.04 - steps: - - - name: Checkout code ✅ - uses: actions/checkout@v4 - - - name: Archive devcontainer and demo inventory - run: | - mkdir clab-build-containerlab-with-ceos - mkdir clab-build-containerlab-with-ceos/.devcontainer - mkdir clab-build-containerlab-with-ceos/demos - cp -r .devcontainer/clab-build-containerlab-with-ceos/* clab-build-containerlab-with-ceos/.devcontainer/ - cp -r demos/clab-build-containerlab-with-ceos/ clab-build-containerlab-with-ceos/demos/ - - - name: Upload artifact 🔼 - id: upload-artifact-step - uses: actions/upload-pages-artifact@v3 - with: - name: clab-build-containerlab-with-ceos - path: ./clab-build-containerlab-with-ceos/ - - - name: Show Artifact URL - run: echo 'Artifact URL is ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.upload-artifact-step.outputs.artifact-id }}' diff --git a/.github/workflows/publish-pages.yml b/.github/workflows/publish-pages.yml index 4ac0082..21fa6f8 100644 --- a/.github/workflows/publish-pages.yml +++ b/.github/workflows/publish-pages.yml @@ -37,7 +37,7 @@ jobs: run: | grep -rl '{{gh.repo_name}}' . --exclude-dir .git | xargs sed -i 's/{{gh.repo_name}}/'"${{ github.event.repository.name }}"'/g' grep -rl '{{gh.org_name}}' . --exclude-dir .git | xargs sed -i 's/{{gh.org_name}}/'"${{ github.repository_owner }}"'/g' - grep -rl '{{gh.repository}}' . --exclude-dir .git | xargs sed -i 's@{{gh.org_name}}@'"${{ github.repository }}"'@g' + grep -rl '{{gh.repository}}' . --exclude-dir .git | xargs sed -i 's@{{gh.repository}}@'"${{ github.repository }}"'@g' - name: Setup Python3 🐍 uses: actions/setup-python@v5