Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Dockerfile Cleanup archive action Jan 3, 2019
LICENSE Add archive action Dec 30, 2018
README.md
entrypoint.sh Add wordpress action Jan 3, 2019

README.md

Licence PRs

Archive

Github action to create release zip archive. Currently action excludes following development/build files/folders:

  • node_modules
  • .git
  • .github
  • .wordpress-org
  • src
  • .gitkeep
  • .distignore
  • .gitignore
  • .editorconfig
  • .eslintignore
  • .eslintrc
  • .nvmrc
  • CHANGELOG.md
  • CONTRIBUTING.md
  • docker-compose.yml
  • package-lock.json
  • package.json
  • README.md
  • webpack.config.js
  • actions

Note:

  • To be used as part of workflow where archive can be used for further action like release or publish.

Environment Variables

  • ARCHIVE_FILENAME: filename for the zip archive

Example Workflow

    # Workflow to create distribution archive
    workflow "Create Archive" {
        on = "push"
        resolves = ["archive"]
    }

    # Filter for tag
    action "tag" {
        uses = "actions/bin/filter@master"
        args = "tag"
    }

    # Install Dependencies
    action "install" {
        uses = "actions/npm@e7aaefe"
        needs = "tag"
        args = "install"
    }

    # Build
    action "build" {
        uses = "actions/npm@e7aaefe"
        needs = ["install"]
        args = "run build"
    }

    # Create Release ZIP archive
    action "archive" {
        uses = "lubusIN/actions/archive@master"
        needs = ["build"]
        env = {
                ZIP_FILENAME = "archive-filename"
            }
    }

Feedback / Suggestions

If you have any suggestions/feature request that you would like to see, feel free to let us know in the issues section

Credits

Ajit Bohra

Support Us

Become A Patron

LUBUS is a web design agency based in Mumbai, India.

You can pledge on patreon to support the development & maintenance of various opensource stuff we are building.

License

archive action is open-sourced software licensed under the MIT