Skip to content

Commit

Permalink
Merge pull request #2 from nmerget/chore-rename-action
Browse files Browse the repository at this point in the history
chore: rename action and add file ending
  • Loading branch information
nmerget authored Sep 22, 2023
2 parents efe9e8f + be2cb91 commit c222882
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: 'Upload Tar Artifact'
description: 'Zips a directory/file as {name}.tar.gz and upload an artifact.'
name: 'Upload Gzip Artifact'
description: 'Tar a directory/file and compress it with gzip and upload the artifact.'
author: "Nicolas Merget"
branding:
icon: package
Expand All @@ -19,13 +19,17 @@ inputs:
runs:
using: 'composite'
steps:
- name: 📦 Pack as tar
run: tar -czf ${{ inputs.name }} ${{ inputs.path }}
- name: 📦 Pack as tar an compress
run: tar -czf ${{ inputs.name }}.tar.gz ${{ inputs.path }}
shell: bash

- name: ⏫ Upload build
- name: ⏫ Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.name }}
path: ${{ inputs.name }}
path: ${{ inputs.name }}.tar.gz
retention-days: ${{ inputs.retention-days }}

- name: 🚮 Remove tar
run: ${{ inputs.name }}.tar.gz
shell: bash

0 comments on commit c222882

Please sign in to comment.