Removed upload/download artifact from GH actions
This commit is contained in:
@@ -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 }}
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user