diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 943fa12f..1164ac4a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -70,10 +70,10 @@ jobs: - name: Check for diffs run: git diff --exit-code - name: Upload artifact - uses: actions/upload-artifact@main + uses: actions/upload-pages-artifact@v4 with: name: 'github-pages' - path: ${{ steps.mkdocs.outputs.artifact }} + path: ./site retention-days: 1 complete: diff --git a/action.yml b/action.yml index ea03cba0..949a8d23 100644 --- a/action.yml +++ b/action.yml @@ -94,9 +94,7 @@ inputs: description: "Push to remote" required: false default: "true" -outputs: - artifact: - description: "Compressed tar file of the site directory" + runs: using: "docker" image: "Dockerfile" diff --git a/docker/deploy.sh b/docker/deploy.sh index f8c4c4b5..5ed4282d 100755 --- a/docker/deploy.sh +++ b/docker/deploy.sh @@ -41,15 +41,3 @@ if [[ "${INPUT_PUSH}" == "1" || "${INPUT_PUSH,,}" == "true" ]]; then else mkdocs build --config-file ${INPUT_CONFIG} -d ${INPUT_SITE_DIR} fi - -# Set permissions -chmod -c -R +rX "$INPUT_SITE_DIR" | while read line; do - echo "::warning title=Invalid file permissions automatically fixed::$line" -done -# Create a tar the resulting files -echo "Creating tar file artifact.tar from $INPUT_SITE_DIR" -tar -cvf "artifact.tar" -C $INPUT_SITE_DIR . - -if [ $GITHUB_OUTPUT ]; then - echo "ARTIFACT=artifact.tar" >> $GITHUB_OUTPUT -fi