Skip to content

Releases: NxtLvLSoftware/tar-ops-action

v1.0.1

24 Jan 14:38
Compare
Choose a tag to compare

v1.0.0

29 Jul 08:43
Compare
Choose a tag to compare

Allows checking-out your repo, running dependency management commands, code linting and other build/compile time steps, then re-using the processed code across multiple steps without running all the prerequisites again.

name: My Workflow
on: [push]
jobs:
  create-archive:
    name: tar
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - uses: nxtlvlsoftware/tar-ops-action@v1
        with:
          operation: compress
          files: |
            My-Repo/index.ts
            My-Repo/src
            My-Repo/node_modules
          outPath: My-Repo-Sources.tar.gz
      - name: Upload artifacts
        uses: actions/upload-artifact@v2
        with:
          name: My-Repo-Sources-Compressed
          path: My-Repo-Sources.tar.gz
          retention-days: 1