upload-pages-artifact

0
README.md

GitVerse Upload Pages Artifact

A composite action that prepares your static assets to be deployed to GitVerse Pages.

Description

This action packages static files into a tar archive and uploads them as an artifact for subsequent deployment to GitVerse Pages. It supports all major operating systems: Linux, macOS, and Windows.


Usage

Add this step to your GitVerse Actions workflow to upload pages artifact:

Workflow Example

Inputs

ParameterRequiredDefaultDescription
name
No
gitverse-pages
Artifact name
path
Yes
_site/
Path to the directory containing static assets
retention-days
No
1
Duration after which artifact will expire in days

Outputs

ParameterDescription
artifact_id
The ID of the artifact that was uploaded

Features

  • Automatic exclusion of service directories (
    .git
    ,
    .github
    ,
    .gitverse
    )
  • Exclusion of hidden files and directories
  • Cross-platform support (Linux, macOS, Windows)
  • Uses hard dereference for proper symbolic link handling

Requirements

  • GitVerse Actions runner with composite actions support
  • GNU tar (
    gtar
    ) required for macOS