From 405e4260b49dc3384249f38003f1d5c32f03b548 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Sep 2023 07:01:08 +0000 Subject: [PATCH 01/16] Bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/draft-release.yml | 2 +- .github/workflows/test-hosted-runners.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index 11f9ae6..f9cc061 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -8,7 +8,7 @@ jobs: draft-release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: release-drafter/release-drafter@v5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test-hosted-runners.yml b/.github/workflows/test-hosted-runners.yml index 5b0dab9..73ac340 100644 --- a/.github/workflows/test-hosted-runners.yml +++ b/.github/workflows/test-hosted-runners.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Generate files run: mkdir artifact && mkdir artifact2 && cd artifact && ../script/new-artifact.sh From e699324f6a8d3a999660aabec48ba1d5e9148345 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Thu, 26 Oct 2023 13:48:59 -0400 Subject: [PATCH 02/16] Upload pages artifact with upload-artifact@v4-beta --- action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index d4c9a9f..7b6b5b2 100644 --- a/action.yml +++ b/action.yml @@ -14,6 +14,10 @@ inputs: description: "Duration after which artifact will expire in days." required: false default: "1" +outputs: + artifact-id: + description: "The ID of the artifact that was uploaded." + value: ${{ steps.upload-artifact.outputs.artifact-id }} runs: using: composite steps: @@ -63,7 +67,8 @@ runs: INPUT_PATH: ${{ inputs.path }} - name: Upload artifact - uses: actions/upload-artifact@v3 + id: upload-artifact + uses: actions/upload-artifact@v4-beta with: name: ${{ inputs.name }} path: ${{ runner.temp }}/artifact.tar From ecdd3edff76d306e98d046dfc846e651354ac144 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Thu, 26 Oct 2023 14:50:49 -0400 Subject: [PATCH 03/16] Switch to using download@v4-beta --- .github/workflows/test-hosted-runners.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-hosted-runners.yml b/.github/workflows/test-hosted-runners.yml index 5b0dab9..cc0730d 100644 --- a/.github/workflows/test-hosted-runners.yml +++ b/.github/workflows/test-hosted-runners.yml @@ -34,7 +34,7 @@ jobs: path: artifact - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4-beta with: name: github-pages path: artifact2 From ef95519d72c61a2dd9137c79470bacfc5bdbbaa8 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Thu, 26 Oct 2023 14:57:05 -0400 Subject: [PATCH 04/16] Unique artifact name per job --- .github/workflows/test-hosted-runners.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-hosted-runners.yml b/.github/workflows/test-hosted-runners.yml index cc0730d..ea4a3c4 100644 --- a/.github/workflows/test-hosted-runners.yml +++ b/.github/workflows/test-hosted-runners.yml @@ -31,6 +31,7 @@ jobs: - name: Upload Pages artifact uses: ./ with: + name: pages-artifact ${{ matrix.os }} path: artifact - name: Download artifact From 241a975ec2c9ecb3effc2875203cce4b9e25078d Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Thu, 26 Oct 2023 14:59:03 -0400 Subject: [PATCH 05/16] Correct artifact name during download --- .github/workflows/test-hosted-runners.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-hosted-runners.yml b/.github/workflows/test-hosted-runners.yml index ea4a3c4..38db353 100644 --- a/.github/workflows/test-hosted-runners.yml +++ b/.github/workflows/test-hosted-runners.yml @@ -37,7 +37,7 @@ jobs: - name: Download artifact uses: actions/download-artifact@v4-beta with: - name: github-pages + name: pages-artifact ${{ matrix.os }} path: artifact2 - name: Extract artifact From eb31309b6cdf94f92e47abb173a0cbed9b5056cf Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Fri, 27 Oct 2023 10:12:08 -0400 Subject: [PATCH 06/16] Update artifact names in tests --- .github/workflows/test-hosted-runners.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-hosted-runners.yml b/.github/workflows/test-hosted-runners.yml index 38db353..7fb829e 100644 --- a/.github/workflows/test-hosted-runners.yml +++ b/.github/workflows/test-hosted-runners.yml @@ -31,13 +31,13 @@ jobs: - name: Upload Pages artifact uses: ./ with: - name: pages-artifact ${{ matrix.os }} + name: pages-artifact-${{ matrix.os }} path: artifact - name: Download artifact uses: actions/download-artifact@v4-beta with: - name: pages-artifact ${{ matrix.os }} + name: pages-artifact-${{ matrix.os }} path: artifact2 - name: Extract artifact From 1228e656868935b3c8b085b28ea3b89b5763c64e Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Fri, 27 Oct 2023 11:19:41 -0400 Subject: [PATCH 07/16] Update action.yml Co-authored-by: James M. Greene --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 7b6b5b2..05244e3 100644 --- a/action.yml +++ b/action.yml @@ -15,7 +15,7 @@ inputs: required: false default: "1" outputs: - artifact-id: + artifact_id: description: "The ID of the artifact that was uploaded." value: ${{ steps.upload-artifact.outputs.artifact-id }} runs: From 257e666c0505b64d304755738c09e8a1f32ff7e0 Mon Sep 17 00:00:00 2001 From: Rob Herley Date: Thu, 14 Dec 2023 14:04:50 -0500 Subject: [PATCH 08/16] Use `v4` upload-artifact tag Artifacts v4 have been GA'd: - https://github.blog/changelog/2023-12-14-github-actions-artifacts-v4-is-now-generally-available We should use that tag going forward! --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 05244e3..20d3f3e 100644 --- a/action.yml +++ b/action.yml @@ -68,7 +68,7 @@ runs: - name: Upload artifact id: upload-artifact - uses: actions/upload-artifact@v4-beta + uses: actions/upload-artifact@v4 with: name: ${{ inputs.name }} path: ${{ runner.temp }}/artifact.tar From 2a5c1440746537a84f699a04465e7ac8a64879e4 Mon Sep 17 00:00:00 2001 From: Jess Bees Date: Thu, 14 Dec 2023 15:31:31 -0500 Subject: [PATCH 09/16] Use actions/download-artifact@v4 in test --- .github/workflows/test-hosted-runners.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-hosted-runners.yml b/.github/workflows/test-hosted-runners.yml index 7fb829e..19f2cd5 100644 --- a/.github/workflows/test-hosted-runners.yml +++ b/.github/workflows/test-hosted-runners.yml @@ -35,7 +35,7 @@ jobs: path: artifact - name: Download artifact - uses: actions/download-artifact@v4-beta + uses: actions/download-artifact@v4 with: name: pages-artifact-${{ matrix.os }} path: artifact2 From 1a6d9fac9a9b6ddb5b9d3b6ae82faec4133c7e19 Mon Sep 17 00:00:00 2001 From: Uiolee <22849383+uiolee@users.noreply.github.com> Date: Wed, 24 Jan 2024 21:14:06 +0800 Subject: [PATCH 10/16] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index af113d2..3f387ea 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ steps: echo "::warning title=Invalid file permissions automatically fixed::$line" done - name: Upload Pages artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 # ... ``` @@ -62,7 +62,7 @@ steps: echo "::warning title=Invalid file permissions automatically fixed::$line" done - name: Upload Pages artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 # ... ``` From 0e7832dab2d8824cb675c4dc3592266b132d8f0d Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Wed, 31 Jan 2024 00:33:34 -0600 Subject: [PATCH 11/16] Update Dependabot config to group non-breaking changes --- .github/dependabot.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5ace460..7187169 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,3 +4,6 @@ updates: directory: "/" schedule: interval: "weekly" + groups: + non-breaking-changes: + update-types: [minor, patch] From 14007f64647e79cbbb4404c56867428684f2995c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 31 Jan 2024 17:27:38 +0000 Subject: [PATCH 12/16] Bump the non-breaking-changes group with 1 update Bumps the non-breaking-changes group with 1 update: [actions/publish-action](https://github.com/actions/publish-action). Updates `actions/publish-action` from 0.2.2 to 0.3.0 - [Commits](https://github.com/actions/publish-action/compare/v0.2.2...v0.3.0) --- updated-dependencies: - dependency-name: actions/publish-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: non-breaking-changes ... Signed-off-by: dependabot[bot] --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3898455..6a1857b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Update the ${{ env.TAG_NAME }} tag id: update-major-tag - uses: actions/publish-action@v0.2.2 + uses: actions/publish-action@v0.3.0 with: source-tag: ${{ env.TAG_NAME }} slack-webhook: ${{ secrets.SLACK_WEBHOOK }} From 794e304fb3768a063f373a13c21816485c0dbbdf Mon Sep 17 00:00:00 2001 From: Shengyu Zhang Date: Fri, 2 Feb 2024 20:50:16 +0800 Subject: [PATCH 13/16] Group tar's output to prevent it from messing up logs When it is used as a component of a composite action. --- action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/action.yml b/action.yml index 20d3f3e..a19976e 100644 --- a/action.yml +++ b/action.yml @@ -25,6 +25,7 @@ runs: shell: sh if: runner.os == 'Linux' run: | + echo ::group::Archive artifact tar \ --dereference --hard-dereference \ --directory "$INPUT_PATH" \ @@ -32,6 +33,7 @@ runs: --exclude=.git \ --exclude=.github \ . + echo ::endgroup:: env: INPUT_PATH: ${{ inputs.path }} @@ -40,6 +42,7 @@ runs: shell: sh if: runner.os == 'macOS' run: | + echo ::group::Archive artifact gtar \ --dereference --hard-dereference \ --directory "$INPUT_PATH" \ @@ -47,6 +50,7 @@ runs: --exclude=.git \ --exclude=.github \ . + echo ::endgroup:: env: INPUT_PATH: ${{ inputs.path }} @@ -55,6 +59,7 @@ runs: shell: bash if: runner.os == 'Windows' run: | + echo ::group::Archive artifact tar \ --dereference --hard-dereference \ --directory "$INPUT_PATH" \ @@ -63,6 +68,7 @@ runs: --exclude=.github \ --force-local \ "." + echo ::endgroup:: env: INPUT_PATH: ${{ inputs.path }} From f98d42fd3af7712d6af993c97ca4425f194732a7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 06:18:34 +0000 Subject: [PATCH 14/16] Bump release-drafter/release-drafter from 5 to 6 Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5 to 6. - [Release notes](https://github.com/release-drafter/release-drafter/releases) - [Commits](https://github.com/release-drafter/release-drafter/compare/v5...v6) --- updated-dependencies: - dependency-name: release-drafter/release-drafter dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/draft-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index f9cc061..7bb5966 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -9,6 +9,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: release-drafter/release-drafter@v5 + - uses: release-drafter/release-drafter@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 4ee80ee6972df0933ebd5612a87c7eaa56f2b933 Mon Sep 17 00:00:00 2001 From: Jess Bees Date: Thu, 25 Apr 2024 13:48:29 -0400 Subject: [PATCH 15/16] Remove mention of file permissions in README --- README.md | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/README.md b/README.md index 3f387ea..aa845dd 100644 --- a/README.md +++ b/README.md @@ -27,45 +27,6 @@ The [`tar` file][tar] must: - not contain any symbolic or hard links - contain only files and directories that all meet the expected minimum [file permissions](#file-permissions) -### File permissions - -When using this action, ensure that your files have appropriate file permissions. -At a minimum, GitHub Pages expects: -- files to have read permission for the current user and the "Others" user role (e.g. `0744`, `0644`, `0444`) -- directories to have read and execute permissions for the current user and the "Others" user role (e.g. `0755`, `0555`) - -Failure to supply adequate permissions will result in a `deployment_perms_error` when attempting to deploy your artifacts to GitHub Pages. - -#### Example permissions fix for Linux - -```yaml -steps: -# ... - - name: Fix permissions - run: | - chmod -c -R +rX "_site/" | while read line; do - echo "::warning title=Invalid file permissions automatically fixed::$line" - done - - name: Upload Pages artifact - uses: actions/upload-pages-artifact@v3 -# ... -``` - -#### Example permissions fix for Mac - -```yaml -steps: -# ... - - name: Fix permissions - run: | - chmod -v -R +rX "_site/" | while read line; do - echo "::warning title=Invalid file permissions automatically fixed::$line" - done - - name: Upload Pages artifact - uses: actions/upload-pages-artifact@v3 -# ... -``` - ## Release instructions In order to release a new version of this Action: From b443e1f622cf9eba087412a69207c8f81fa6ddaf Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Thu, 25 Apr 2024 13:11:46 -0500 Subject: [PATCH 16/16] README tidy up --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index aa845dd..ea1d83e 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,6 @@ A composite Action for packaging and uploading artifact that can be deployed to [GitHub Pages][pages]. -## Scope - -⚠️ Official support for building Pages with Actions is in public beta at the moment. - ## Usage See [action.yml](action.yml) @@ -25,7 +21,7 @@ The [`tar` file][tar] must: - be under 10GB in size - not contain any symbolic or hard links -- contain only files and directories that all meet the expected minimum [file permissions](#file-permissions) +- contain only files and directories ## Release instructions