Skip to content

Allow skipping the "Upload artifact" step to allow usage in Forgejo Actions #93

@ensko

Description

@ensko

This action is almost compatible with Forgejo actions, and very useful also there: it handles different runtimes and package managers, handles caching, and of course builds the Astro site. However, the last step uses actions/upload-artifact, which can only be used when running on Github.

To allow users to use the built site in other ways, by simply accessing the dist/ directory in another step of the same job, an option to skip the "Upload artifact" step would be great. The "Archive artifact" step builds artifact.tar, which could also be used by subsequent steps, so skipping Upload should probably not automatically skip Archive, although allowing to skip that would be an option. A possible interface would be to add an input result-kind with options dir | tar | upload (modulo bikeshedding) that decides up to which point the action is run.

If this feature is desirable and we figure out how it should look, I would gladly submit a PR to add the option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions