diff --git a/.github/workflows/dev-deploy.yaml b/.github/workflows/dev-deploy.yaml index 85a58a4..4b2f937 100644 --- a/.github/workflows/dev-deploy.yaml +++ b/.github/workflows/dev-deploy.yaml @@ -17,21 +17,24 @@ jobs: uses: actions/configure-pages@v3 - name: Make dev directory shell: bash - run: "mkdir -p ./_dev/${{ github.ref_name }}; ls -la; ls -la _dev; ls -la _dev/mxskylar_dev_deploy" + run: "PROJECT=\"$(basename $(pwd))\"; cd ..; mkdir _tmp; cp $PROJECT/* _tmp; mkdir -p $PROJECT/_dev/${{ github.ref_name }}; cp _tmp/* $PROJECT/_dev/${{ github.ref_name }}; rm -rf _tmp" + - name: ls + shell: bash + run: "ls -la _dev/mxskylar_dev_deploy" - name: Build uses: actions/jekyll-build-pages@v1 with: destination: "./_dev/${{ github.ref_name }}" - name: ls shell: bash - run: "ls -la" + run: "ls -la _dev/mxskylar_dev_deploy" - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: path: "./_dev/${{ github.ref_name }}" - name: ls shell: bash - run: "ls -la; ls -la _dev; ls -la _dev/mxskylar_dev_deploy" + run: "ls -la _dev/mxskylar_dev_deploy" deploy: runs-on: ubuntu-latest needs: build