Skip to content

timstockford/github_actions_templates

Repository files navigation

github_actions_templates

Samples/templates for using Github actions and workflow

Create zip release


Repo Structure

Active workflow files located in: .github/workflows

Templates and samples yml located in repo root

/files contains test file structure to be compressed & zipped

Multi-job Sample

sample_multijob.yml - Sample git actions template with multiple jobs and steps.


Zip & publish

Create zip release

CreateZipRelease.yml - Complete CI workflow to publish new ZIP file when a modification is made to ./files.

Latest generated .zip file is available from: https://github.com/timstockford/github_actions_templates/releases/latest/download/myfiles.zip

Objective

When files are updated in a particular repo folder, automatically zip the folder and publish as a resource, downloadable via http.

use case: Azure Image Builder to download an (automatically maintained) package of scripts during customisation phase.

note: in reality will use a Azure DevOps pipeline step to deliver the script artifacts from the repo.

Planned Features:

  • When /files folder updated create artifact files.zip - create_zip_artifact.yml
  • Use Windows Container to create zip
  • Test zip file extraction works, using dependancy on build job
  • Create new draft release and upload zipfile as Asset
  • Download Asset zip file from Release & test extraction
  • Modify Release to make public
  • Add badge to README.md for workflow status

About

samples for using Github actions and workflow

Resources

Stars

Watchers

Forks

Packages

No packages published