Skip to content

Zips a directory/file as {name}.tar.gz and upload an artifact.

License

Notifications You must be signed in to change notification settings

nmerget/upload-gzip-artifact

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upload Gzip Artifact

This is a simple action to tar a directory/file into a tar.gz file and uploads it as artifact. This wil increase the speed for large build when using reusable workloads and/or parallel workflows.

How to use

---
name: Default Pipeline

on:
  pull_request:

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - name: ⏬ Checkout repo
        uses: actions/checkout@v3

      - name: 🔄 Init Cache
        uses: nmerget/npm-cache-action@v1.0.0

      - name: 🔨 Build
        run: npm run build

      - name: ⏫ Upload build
        uses: nmerget/upload-gzip-artifact@main
        with:
          name: frontend-build
          path: dist

Configuration

...
- name: ⏫ Upload build
  uses: nmerget/upload-tar-artifact@main
  with:
    name: frontend-build # use a good name because this will be shown in GitHub summary, don't use the same name as `path`
    path: dist # your directory to upload
    retention-days: 5 # delete the artifact at some point
...

About

Zips a directory/file as {name}.tar.gz and upload an artifact.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •