Skip to content

Commit

Permalink
docs: add example when using workdir along with upload-artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhou, Wen committed Jul 24, 2022
1 parent aab65f3 commit 1f325d1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Expand Up @@ -148,6 +148,26 @@ purpose. You can do that with the [actions/upload-artifact](https://github.com/a
path: dist/*
```

Example when using `workdir` with [actions/upload-artifact](https://github.com/actions/upload-artifact) action:

```yaml
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release --rm-dist
workdir: myfolder
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
name: Upload assets
uses: actions/upload-artifact@v3
with:
name: myapp
path: myfolder/dist/*
```

### Install Only

```yaml
Expand Down

0 comments on commit 1f325d1

Please sign in to comment.