Skip to content

Action Archiver

Actions
GitHub Action to generate archives
v1.1.2
Latest
Star (1)

action-archiver

Github action to generate tar/zip archives

Tests

Usage

name: Build
on:
  push:
    branches:
      - production

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: 16

      - run: npm ci
      - run: npm run build

      - uses: sibiraj-s/action-archiver@v1
        with:
          working-directory: './'
          path: 'dist/**'
          format: tar # default
          output: dist.tar

Creating gzip archive:

steps:
  - uses: sibiraj-s/action-archiver@v1
    with:
      path: '**/*.js'
      format: zip
      output: dist.zip
      compression-level: 4 # default, see https://nodejs.org/api/zlib.html#class-options

Compress tar archive with gzip

steps:
  - uses: sibiraj-s/action-archiver@v1
    with:
      path: '**/*.js'
      format: tar
      gzip: true
      output: dist.tar.gz

Ignore files

steps:
  - uses: sibiraj-s/action-archiver@v1
    with:
      path: '**/*'
      output: dist.tar
      ignore: |
        **/*.md
        **/*.yml

Security

For better security it is recommended to pin actions to a full length commit SHA.

Read more on using third-party actions

Action Archiver is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

GitHub Action to generate archives
v1.1.2
Latest

Action Archiver is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.