Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
box

GitHub Action

RelativeCI agent upload artifact

v1.0.2

RelativeCI agent upload artifact

box

RelativeCI agent upload artifact

Upload RelativeCI artifact to share with relative-ci/agent-action

Installation

Copy and paste the following snippet into your .yml file.

              

- name: RelativeCI agent upload artifact

uses: relative-ci/[email protected]

Learn more about this action in relative-ci/agent-upload-artifact-action

Choose a version

RelativeCI agent upload artifact action

GitHub action that uploads artifact to share with RelativeCI agent action when running during workflow_run.

The artifact will be available on the workflow page (see: actions/upload-artifact "Where does the upload go?") and will count toward your GitHub storage usage.


To get started, follow RelativeCI Setup guide.

Example usage

# .github/workflow/node.js.yml
name: Node.js CI

on:
  push:
    branches:
      - master
  pull_request:

jobs:
  build:
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: '16.x'

      # Install dependencies
      - run: npm ci
 
      # Build bundle and output webpack stats
      - run: npm run build -- --json > webpack-stats.json
      
      # Upload relative-ci-artifact/webpack-stats.json to share with relative-ci/agent-action
      - name: Upload webpack stats artifact
        uses: relative-ci/agent-upload-artifact-action@v1
        with:
          webpackStatsFile: './webpack-stats.json

Input

webpackStatsFile

(default: ./webpack-stats.json) Relative path to the generated webpack stats file

artifactName

(default: relative-ci-artifacts) The artifact name

artifactWebpackStatsFile

(default: webpack-stats.json) The artifact webpack stats file name

retentionDays

(default: 90) actions/upload-artifact retention-days input