From b50b8e18998c4c38d19f524d6094558676401641 Mon Sep 17 00:00:00 2001 From: rasmus-kirk Date: Fri, 1 Mar 2024 07:35:34 +0100 Subject: [PATCH] Removed upload/download artifact from GH actions --- .github/actions/download-artifact/action.yml | 31 ------------- .github/actions/upload-artifact/action.yml | 46 -------------------- .github/workflows/deployment.yml | 4 +- mkDocs.nix | 1 - 4 files changed, 2 insertions(+), 80 deletions(-) delete mode 100644 .github/actions/download-artifact/action.yml delete mode 100644 .github/actions/upload-artifact/action.yml diff --git a/.github/actions/download-artifact/action.yml b/.github/actions/download-artifact/action.yml deleted file mode 100644 index 4a49a88..0000000 --- a/.github/actions/download-artifact/action.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Download artifact -description: Wrapper around GitHub's official action, with additional extraction before download - -# https://github.com/actions/download-artifact/blob/main/action.yml -inputs: - name: - description: Artifact name - required: true - path: - description: Destination path - required: false - default: . - -runs: - using: composite - steps: - - name: Download artifacts - uses: actions/download-artifact@v3 - with: - name: ${{ inputs.name }} - path: ${{ inputs.path }} - - - name: Extract artifacts - run: tar -xvf ${{ inputs.name }}.tar - shell: bash - working-directory: ${{ inputs.path }} - - - name: Remove archive - run: rm -f ${{ inputs.name }}.tar - shell: bash - working-directory: ${{ inputs.path }} diff --git a/.github/actions/upload-artifact/action.yml b/.github/actions/upload-artifact/action.yml deleted file mode 100644 index 16b2a02..0000000 --- a/.github/actions/upload-artifact/action.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Upload artifact -description: Wrapper around GitHub's official action, with additional archiving before upload - -# https://github.com/actions/upload-artifact/blob/main/action.yml -inputs: - name: - description: Artifact name - required: true - path: - description: One or more files, directories or wildcard pattern that describes what to upload - required: true - if-no-files-found: - description: > - The desired behavior if no files are found using the provided path. - Available Options: - warn: Output a warning but do not fail the action - error: Fail the action with an error message - ignore: Do not output any warnings or errors, the action does not fail - required: false - default: warn - retention-days: - description: > - Duration after which artifact will expire in days. 0 means using default retention. - Minimum 1 day. - Maximum 90 days unless changed from the repository settings page. - required: false - default: '0' - -runs: - using: composite - steps: - - name: Archive artifacts - run: tar -hcvf ${{ inputs.name }}.tar $(echo "${{ inputs.path }}" | tr '\n' ' ') - shell: bash - - - name: Upload artifacts - uses: actions/upload-artifact@v3 - with: - if-no-files-found: ${{ inputs.if-no-files-found }} - name: ${{ inputs.name }} - path: ${{ inputs.name }}.tar - retention-days: ${{ inputs.retention-days }} - - - name: Remove archive - run: rm -f ${{ inputs.name }}.tar - shell: bash \ No newline at end of file diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 8d2293a..87cc99d 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -39,7 +39,7 @@ jobs: - run: mkdir -p out && cp -r ./result/* out - name: Store docs - uses: ./.github/actions/upload-artifact + uses: actions/upload-artifact@v4 with: name: docs path: ./out @@ -55,7 +55,7 @@ jobs: uses: actions/checkout@v3 - name: Get nix build output - uses: ./.github/actions/download-artifact + uses: actions/download-artifact@v4 with: name: docs diff --git a/mkDocs.nix b/mkDocs.nix index 78af1c7..7705e48 100644 --- a/mkDocs.nix +++ b/mkDocs.nix @@ -10,7 +10,6 @@ { config._module.check = false; } - #inputs.home-manager.nixosModules.default ./nixarr ]; };