Skip to content

Commit 3a7f031

Browse files
committed
Remove upload artifact from the github action
1 parent a6b5638 commit 3a7f031

3 files changed

Lines changed: 3 additions & 17 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ jobs:
6969
- name: Check for diffs
7070
run: git diff --exit-code
7171
- name: Upload artifact
72-
uses: actions/upload-artifact@main
72+
uses: actions/upload-pages-artifact@v4
7373
with:
7474
name: 'github-pages'
75-
path: ${{ steps.mkdocs.outputs.artifact }}
75+
path: ./site
7676
retention-days: 1
7777

7878
complete:

action.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ inputs:
9494
description: "Push to remote"
9595
required: false
9696
default: "true"
97-
outputs:
98-
artifact:
99-
description: "Compressed tar file of the site directory"
97+
10098
runs:
10199
using: "docker"
102100
image: "Dockerfile"

docker/deploy.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,3 @@ if [[ "${INPUT_PUSH}" == "1" || "${INPUT_PUSH,,}" == "true" ]]; then
4141
else
4242
mkdocs build --config-file ${INPUT_CONFIG} -d ${INPUT_SITE_DIR}
4343
fi
44-
45-
# Set permissions
46-
chmod -c -R +rX "$INPUT_SITE_DIR" | while read line; do
47-
echo "::warning title=Invalid file permissions automatically fixed::$line"
48-
done
49-
# Create a tar the resulting files
50-
echo "Creating tar file artifact.tar from $INPUT_SITE_DIR"
51-
tar -cvf "artifact.tar" -C $INPUT_SITE_DIR .
52-
53-
if [ $GITHUB_OUTPUT ]; then
54-
echo "ARTIFACT=artifact.tar" >> $GITHUB_OUTPUT
55-
fi

0 commit comments

Comments
 (0)