12 Commits

Author SHA1 Message Date
Yoann Chaudet
253fd476ed Merge pull request #44 from KyeRussell/patch-1
Don't change file permissions of other files
2022-12-16 09:59:57 -08:00
Kye Russell
98c5608efa Don't change file permissions of other files
Fixes #43
2022-12-16 12:44:24 +08:00
Yoann Chaudet
c8641e8004 Merge pull request #41 from yuradanyliuk/customize-artifact-name
Customize artifact name
2022-12-08 15:28:55 -08:00
Yoann Chaudet
b27b6af8bf Merge branch 'main' into customize-artifact-name 2022-12-08 15:27:57 -08:00
Yoann Chaudet
73907447a0 Merge pull request #42 from actions/fix-permissions
Fix permissions
2022-12-08 15:21:43 -08:00
Yoann Chaudet
6da3417318 Wording 2022-12-08 14:48:49 -08:00
Yoann Chaudet
386aa88c28 Include folder 2022-12-08 14:44:29 -08:00
Yuriy Danyliuk
90d4377601 Add new input for artifact name 2022-12-05 03:31:49 +02:00
Jess Bees
79d3b41b30 Merge pull request #38 from actions/change-file-permissions
Print warnings about changed file permissions in bulk
2022-11-30 16:09:50 -05:00
Jess Bees
7d0004809d Print warnings about changed file permissions in bulk
This will avoid mangled output when files have spaces within them.
2022-11-29 16:56:15 -05:00
James M. Greene
1ca738b002 Merge pull request #36 from actions/JamesMGreene-patch-1
Update to latest `actions/publish-action`
2022-11-22 22:26:59 -06:00
James M. Greene
4103baae3e Update to latest actions/publish-action
To avoid Actions core deprecation messages.

https://github.com/actions/publish-action/releases/tag/v0.2.1
2022-11-22 10:27:53 -06:00
2 changed files with 10 additions and 8 deletions

View File

@@ -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.1
with:
source-tag: ${{ env.TAG_NAME }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

View File

@@ -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 $(chmod -v -R +r .)
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 \
@@ -69,6 +71,6 @@ runs:
- name: Upload artifact
uses: actions/upload-artifact@main
with:
name: github-pages
name: ${{ inputs.name }}
path: ${{ runner.temp }}/artifact.tar
retention-days: ${{ inputs.retention-days }}