Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 1 addition & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
12 changes: 0 additions & 12 deletions docker/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading