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

PreRelease doesn't seem to work #60

Open
bassterror opened this issue Dec 14, 2021 · 1 comment
Open

PreRelease doesn't seem to work #60

bassterror opened this issue Dec 14, 2021 · 1 comment

Comments

@bassterror
Copy link

Everything seems to work as it should, but when I check the release in GitHub it isn't marked as "pre-release". Everything else is set correctly. Am I missing something?

My workflow:

jobs:
  build:
    runs-on: windows-latest

    env:
      Pre_Release: ${{ contains(github.ref, 'dev') }}

    steps:
      - name: Upload binaries to release
        uses: svenstaro/upload-release-action@v2
        with:
          repo_token: ${{ secrets.GITHUB_TOKEN }}
          file: MKVStudio.7z
          asset_name: MKVStudio.7z
          release_name: "${{ steps.gitversion.outputs.MajorMinorPatch }}"
          tag: "${{ steps.gitversion.outputs.MajorMinorPatch }}"
          overwrite: true
          body: |
            ${{ steps.Changelog.outputs.changelog }}
          prerelease: $env:Pre_Release

Result in the log:

with:
    repo_token: ***
    file: MKVStudio.7z
    asset_name: MKVStudio.7z
    release_name: 0.6.0
    tag: 0.6.0
    overwrite: true
    body: - no changes
    prerelease: $env:Pre_Release
  env:
    Pre_Release: true
@ndegwamartin
Copy link

I've encountered this as well

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

2 participants