mirror of
https://github.com/actions/upload-pages-artifact.git
synced 2026-02-09 03:45:23 +00:00
Compare commits
25 Commits
change-fil
...
v1.0.8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
64bcae551a | ||
|
|
d07e4817c2 | ||
|
|
07744da919 | ||
|
|
a3acd10bdf | ||
|
|
1e171d0d53 | ||
|
|
c06cea93b0 | ||
|
|
d8fa6d6dc2 | ||
|
|
2b33ce347b | ||
|
|
6fae3a4821 | ||
|
|
c55689491b | ||
|
|
253fd476ed | ||
|
|
98c5608efa | ||
|
|
c8641e8004 | ||
|
|
b27b6af8bf | ||
|
|
73907447a0 | ||
|
|
6da3417318 | ||
|
|
386aa88c28 | ||
|
|
90d4377601 | ||
|
|
79d3b41b30 | ||
|
|
7d0004809d | ||
|
|
1ca738b002 | ||
|
|
4103baae3e | ||
|
|
4506126207 | ||
|
|
6de1c7ae49 | ||
|
|
de1b81a30a |
6
.github/dependabot.yml
vendored
Normal file
6
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -24,7 +24,7 @@ jobs:
|
||||
steps:
|
||||
- name: Update the ${{ env.TAG_NAME }} tag
|
||||
id: update-major-tag
|
||||
uses: actions/publish-action@v0.1.0
|
||||
uses: actions/publish-action@v0.2.2
|
||||
with:
|
||||
source-tag: ${{ env.TAG_NAME }}
|
||||
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
||||
|
||||
@@ -44,7 +44,7 @@ The scripts and documentation in this project are released under the [MIT Licens
|
||||
|
||||
<!-- references -->
|
||||
[pages]: https://pages.github.com
|
||||
[release-list]: /releases
|
||||
[release-list]: https://github.com/actions/upload-pages-artifact/releases
|
||||
[draft-release]: .github/workflows/draft-release.yml
|
||||
[release]: .github/workflows/release.yml
|
||||
[release-workflow-runs]: /actions/workflows/release.yml
|
||||
|
||||
19
action.yml
19
action.yml
@@ -2,6 +2,10 @@ name: "Upload GitHub Pages artifact"
|
||||
description: "A composite action that prepares your static assets to be deployed to GitHub Pages"
|
||||
author: "GitHub"
|
||||
inputs:
|
||||
name:
|
||||
description: 'Artifact name'
|
||||
required: false
|
||||
default: 'github-pages'
|
||||
path:
|
||||
description: "Path of the directory containing the static assets."
|
||||
required: true
|
||||
@@ -17,9 +21,8 @@ runs:
|
||||
shell: sh
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
for f in $(chmod -c -R +r . | awk '{print substr($3, 2, length($3)-2)}')
|
||||
do
|
||||
echo "::warning::Added read permission to $f"
|
||||
chmod -c -R +rX "$INPUT_PATH" | while read line; do
|
||||
echo "::warning title=Invalid file permissions automatically fixed::$line"
|
||||
done
|
||||
tar \
|
||||
--dereference --hard-dereference \
|
||||
@@ -36,9 +39,8 @@ runs:
|
||||
shell: sh
|
||||
if: runner.os == 'macOS'
|
||||
run: |
|
||||
for f in $(gchmod -c -R +r . | awk '{print substr($3, 2, length($3)-2)}')
|
||||
do
|
||||
echo "::warning::Added read permission to $f"
|
||||
chmod -v -R +rX "$INPUT_PATH" | while read line; do
|
||||
echo "::warning title=Invalid file permissions automatically fixed::$line"
|
||||
done
|
||||
gtar \
|
||||
--dereference --hard-dereference \
|
||||
@@ -67,8 +69,9 @@ runs:
|
||||
INPUT_PATH: ${{ inputs.path }}
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@main
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: github-pages
|
||||
name: ${{ inputs.name }}
|
||||
path: ${{ runner.temp }}/artifact.tar
|
||||
retention-days: ${{ inputs.retention-days }}
|
||||
if-no-files-found: error
|
||||
|
||||
Reference in New Issue
Block a user