actions / upload-pages-artifact

A composite action for packaging and uploading an artifact that can be deployed to GitHub Pages.
https://pages.github.com
MIT License
283 stars 71 forks source link

Unable to specify correct build folder path for upload #67

Closed basher closed 1 year ago

basher commented 1 year ago

I have a repo with Storybook-HTML, which I'm trying to publish with GitHub Pages.

Here's my YAML actions file: https://github.com/basher/Web-UI-Boilerplate/blob/master/.github/workflows/static.yml

The BUILD succeeds, and outputs the static Storybook files as shown in screenshot:

build

The UPLOAD always fails with this error:

upload

I have tried all the different permutations for specifying the PATH... for example, with/without quotes, with absolute URL, etc.

Any help will be much appreciated!

yoannchaudet commented 1 year ago

@basher You need to move the upload step in the build job.

Jobs don't share files between each others, hence artifacts ;)

basher commented 1 year ago

@yoannchaudet Thanks, that worked.

I also had to qualify the path with the current workspace: path: ${{ github.workspace }}/ui/storybook-static