A GitHub Action for zipping script files in a zip file for easy distribution and installation
The idea here is to take the files of your repository, and let the action create the corresponding structure needed to create a zipfile which you can send to your peers.
They will then be able to simply deploy your software onto their machine with an absolute breeze.
Customize following example workflow and save as .github/workflows/zip-it.yml
on your source repository.
name: Zipping it
on: [push]
jobs:
zip-it:
runs-on: ubuntu-18.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: tuxecure/[email protected]
with:
prefix: ${HOME}/.local # sets the location where the package script will extract the files to.
pkg_directories: bin lib share #created bin lib and share for zipping
bin: crackle rorw remount # goes into $PREFIX/bin
lib: triplet pkgfunc linkfunc # goes into $PREFIX/lib
share: crackle # goes into $PREFIX/share in this case also known as $XDG_DATA_HOME
data_directory: state # goes into $PREFIX/share/crackle in this case also known as $XDG_DATA_HOME/crackle
owner: tuxecure # name of the repo owner defaults to the current repo owner
repo_name: crackle # name of the repo defaults to the current repo name
package_name: crackle # name of the zip defaults to the current repo name