Skip to content

Commit 5dc579b

Browse files
authored
docs: add example when using workdir along with upload-artifact (#366)
when using workdir, goreleaser creates dist folder inside of workdir, but upload-artifact action's path only matching from git_root dir
1 parent 3b7d1ba commit 5dc579b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,15 @@ purpose. You can do that with the [actions/upload-artifact](https://github.com/a
138138
with:
139139
version: latest
140140
args: release --rm-dist
141+
workdir: myfolder
141142
env:
142143
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
143144
-
144145
name: Upload assets
145146
uses: actions/upload-artifact@v3
146147
with:
147148
name: myapp
148-
path: dist/*
149+
path: myfolder/dist/*
149150
```
150151

151152
### Install Only

0 commit comments

Comments
 (0)