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
This commit is contained in:
Wen Zhou 2022-12-13 14:19:24 +01:00 committed by GitHub
parent 3b7d1ba946
commit 5dc579bb76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -138,6 +138,7 @@ purpose. You can do that with the [actions/upload-artifact](https://github.com/a
with: with:
version: latest version: latest
args: release --rm-dist args: release --rm-dist
workdir: myfolder
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- -
@ -145,7 +146,7 @@ purpose. You can do that with the [actions/upload-artifact](https://github.com/a
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: myapp name: myapp
path: dist/* path: myfolder/dist/*
``` ```
### Install Only ### Install Only