Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to include folder in archive #169

Closed
Edwin-Luijten opened this issue Apr 27, 2020 · 1 comment
Closed

Unable to include folder in archive #169

Edwin-Luijten opened this issue Apr 27, 2020 · 1 comment

Comments

@Edwin-Luijten
Copy link

I have the following project structure:

- server
  - main.go
  - public
  - .goreleaser.yml
- frontend

When I run goreleaser locally bin/goreleaser --snapshot --skip-publish --rm-dist it creates an archive with my specified folder, below a part of the config:

...
archives:
  -
    name_template: "{{ .ProjectName }}_{{ tolower .Os }}_{{ tolower .Arch }}"
    files:
      - public/**/*
...

But when the github action is creating a build, it does not include the public folder in the archive.
I specified the working directory:

-
        name: Release
        uses: goreleaser/goreleaser-action@v1
        with:
          version: latest
          workdir: server
          args: release --rm-dist
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Find below the action: https://github.com/q-assistant/controller/actions/runs/89358207

@Edwin-Luijten
Copy link
Author

Found out the issue, a previous command failed silent, therefore the directory did not exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant