mirror of
https://github.com/actions/upload-pages-artifact.git
synced 2026-02-09 03:45:23 +00:00
Update README.md
This commit is contained in:
committed by
GitHub
parent
66b63f4a7d
commit
a3f792f9c5
32
README.md
32
README.md
@@ -26,6 +26,38 @@ The [`tar` file][tar] must:
|
|||||||
- be under 10GB in size
|
- be under 10GB in size
|
||||||
- not contain any symbolic or hard links
|
- not contain any symbolic or hard links
|
||||||
|
|
||||||
|
# File Permissions
|
||||||
|
|
||||||
|
When using this action ensure your files have appropriate file permission, we expect at a minimum for the files to have permission for the current user (e.g 0744).
|
||||||
|
Failure to do so will result in a `deployment_perms_error` when attempting to deploy your artifacts.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
...
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- name: Archive artifact
|
||||||
|
shell: sh
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
run: |
|
||||||
|
chmod -c -R +rX "$INPUT_PATH" |
|
||||||
|
while read line; do
|
||||||
|
echo "::warning title=Invalid file permissions automatically fixed::$line"
|
||||||
|
done
|
||||||
|
tar \
|
||||||
|
--dereference --hard-dereference \
|
||||||
|
--directory "$INPUT_PATH" \
|
||||||
|
-cvf "$RUNNER_TEMP/artifact.tar" \
|
||||||
|
--exclude=.git \
|
||||||
|
--exclude=.github \
|
||||||
|
.
|
||||||
|
env:
|
||||||
|
INPUT_PATH: ${{ inputs.path }}
|
||||||
|
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
# Release instructions
|
# Release instructions
|
||||||
|
|
||||||
In order to release a new version of this Action:
|
In order to release a new version of this Action:
|
||||||
|
|||||||
Reference in New Issue
Block a user