Skip to content

rename --body to --release_notes, add --release_notes_file (see #155)#1069

Merged
svenfuchs merged 1 commit intomasterfrom
sf-releases-release-notes
Aug 21, 2019
Merged

rename --body to --release_notes, add --release_notes_file (see #155)#1069
svenfuchs merged 1 commit intomasterfrom
sf-releases-release-notes

Conversation

@svenfuchs
Copy link
Copy Markdown
Contributor

@svenfuchs svenfuchs commented Aug 19, 2019

Can be tested using:

deploy:
  provider: releases
  edge:
    branch: sf-releases-release-notes

@BanzaiMan
Copy link
Copy Markdown
Contributor

I think body is an Octokit/API-provided option that gets tied to Releases, so I am not a fan of removing this option.

@svenfuchs
Copy link
Copy Markdown
Contributor Author

@BanzaiMan it doesn't remove it, but still keeps it as an alias (so people's deploy configs won't break)

but i'm not sure we have to stick with Octokit's nomenclature necessarily? body seems like a rather technical detail to me, and "release notes" is what they use in their documentation https://github.com/octokit/octokit.rb/blob/master/lib/octokit/client/releases.rb#L25 (which is where i've grabbed this name from)

i'm not set on release_notes, but i think it should be something that works well with a prefix _file ... i'd think body_file would be just too weird :)

@BanzaiMan
Copy link
Copy Markdown
Contributor

OK. I have no other concerns.

@svenfuchs svenfuchs merged commit e26250b into master Aug 21, 2019
@svenfuchs svenfuchs deleted the sf-releases-release-notes branch August 21, 2019 14:47
@Midnighter
Copy link
Copy Markdown

@svenfuchs I tried to test it with the following demo repo https://github.com/Midnighter/travis-release-notes/ but my config is not recognized and doesn't trigger a job 😞

Does it only work for provider: pages? I thought most people in #155 wanted it for provider: releases.

Also doesn't help that there is no clear way to validate a configuration :/ but that's another issue.

@svenfuchs
Copy link
Copy Markdown
Contributor Author

@Midnighter it seems your config has both a matrix and a jobs key. these are aliases, and matrix will take precedence, so jobs is silently ignored, unfortunately. i'd recommend moving fast_finish: true into the jobs section, and removing matrix.

Does it only work for provider: pages?

whoops, no, sorry. bad copy and paste, i've fixed that. these options are available on the releases provider https://github.com/travis-ci/dpl/blob/master/lib/dpl/providers/releases.rb#L28

@Midnighter
Copy link
Copy Markdown

Midnighter commented Sep 2, 2019

Thanks for the hint! I got the deploy to run but now the file is not found and I don't get a lot of information from the log to try and fix it.

/home/travis/.rvm/gems/ruby-2.4.5/gems/cl-1.1.1/lib/cl/opts/validate.rb:32:in apply: Missing required option: file

https://travis-ci.org/Midnighter/travis-release-notes/jobs/579659390

@svenfuchs
Copy link
Copy Markdown
Contributor Author

@Midnighter that's because the release provider expects you to specify a file option in your build config https://github.com/Midnighter/travis-release-notes/blob/c03b6281fc3cbdbc44a32ead08b31a6b27ae4a36/.travis.yml#L35 (see https://docs.travis-ci.com/user/deployment/releases/)

If you meant to upload all files then you can specify:

deploy:
  - provider: pages
     file: *
     file_glob: true

I have also opened #1093 that would switch this around a little, and make your current config behave the same. I think that would be slightly better UX, but I'm not yet sure if we want to merge that PR.

If you want to give it a try nonetheless, you can use:

deploy:
  - provider: pages
     edge:
       branch: sf-releases-file

On that branch file and file_glob would not be required any more, but default to the same behavior.

@svenfuchs
Copy link
Copy Markdown
Contributor Author

Also curious that you are getting that noisy backtrace on your build log. That actually shouldn't be there.

@Midnighter
Copy link
Copy Markdown

Ah, thank you. I tried to create a minimal example but I'm forgetting the important bits 😉 Thanks for your help.

@Midnighter
Copy link
Copy Markdown

Works great! Thank you for the PR and your help here ❤️

See result https://github.com/Midnighter/travis-release-notes/releases

vespakoen added a commit to vespakoen/solvespace that referenced this pull request Oct 22, 2020
vespakoen added a commit to vespakoen/solvespace that referenced this pull request Oct 22, 2020
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
vespakoen added a commit to vespakoen/solvespace that referenced this pull request Oct 22, 2020
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
vespakoen added a commit to vespakoen/solvespace that referenced this pull request Oct 22, 2020
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
- Add missing newline to build-windows.sh
vespakoen added a commit to vespakoen/solvespace that referenced this pull request Oct 22, 2020
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
- Add missing newline to build-windows.sh
vespakoen added a commit to vespakoen/solvespace that referenced this pull request Oct 22, 2020
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
- Add missing newline to build-windows.sh
- Build x86 for Windows
vespakoen added a commit to vespakoen/solvespace that referenced this pull request Oct 22, 2020
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
- Add missing newline to build-windows.sh
- Build x86 for Windows
vespakoen added a commit to vespakoen/solvespace that referenced this pull request Oct 22, 2020
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
- Add missing newline to build-windows.sh
- Build x86 for Windows
vespakoen added a commit to vespakoen/solvespace that referenced this pull request Oct 22, 2020
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
- Add missing newline to build-windows.sh
- Build x86 for Windows
vespakoen added a commit to vespakoen/solvespace that referenced this pull request Oct 22, 2020
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
- Add missing newline to build-windows.sh
- Build x86 for Windows
vespakoen added a commit to vespakoen/solvespace that referenced this pull request Oct 22, 2020
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
- Add missing newline to build-windows.sh
- Build x86 for Windows
- Enable OpenMP in test builds
vespakoen added a commit to vespakoen/solvespace that referenced this pull request Oct 22, 2020
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
- Add missing newline to build-windows.sh
- Build x86 for Windows
- Enable OpenMP in test builds
- Disable sanitizers on ubuntu test build
- Disallow failures on snap build
vespakoen added a commit to vespakoen/solvespace that referenced this pull request Oct 22, 2020
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
- Add missing newline to build-windows.sh
- Build x86 for Windows
- Enable OpenMP in test builds
- Enable sanitizers on macOS and Windows test builds
- Disallow failures on snap build
vespakoen added a commit to vespakoen/solvespace that referenced this pull request Oct 22, 2020
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
- Add missing newline to build-windows.sh
- Build x86 for Windows
- Enable OpenMP in test builds
- Enable sanitizers on macOS test build
- Disallow failures on snap build
vespakoen added a commit to vespakoen/solvespace that referenced this pull request Oct 22, 2020
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
- Add missing newline to build-windows.sh
- Build x86 for Windows
- Enable OpenMP in test builds
- Enable sanitizers on macOS test build
- Disallow failures on snap build
vespakoen added a commit to vespakoen/solvespace that referenced this pull request Oct 24, 2020
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
- Add missing newline to build-windows.sh
- Build x86 for Windows
- Enable OpenMP in test builds
- Enable sanitizers on macOS test build
- Disallow failures on snap build
vespakoen added a commit to vespakoen/solvespace that referenced this pull request Oct 24, 2020
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
- Add missing newline to build-windows.sh
- Build x86 for Windows
- Enable OpenMP in test builds
- Disable sanitizers on macOS test build
- Disallow failures on snap build
vespakoen added a commit to solvespace/solvespace that referenced this pull request Oct 24, 2020
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
- Add missing newline to build-windows.sh
- Build x86 for Windows
- Enable OpenMP in test builds
- Disable sanitizers on macOS test build
- Disallow failures on snap build
@MarkCallow
Copy link
Copy Markdown

MarkCallow commented May 1, 2022

Does this work in dpl v1? I can't use dpl v2 due to #1213.

devin-ai-integration bot pushed a commit to erkinalp/solvespace that referenced this pull request Apr 3, 2025
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
- Add missing newline to build-windows.sh
- Build x86 for Windows
- Enable OpenMP in test builds
- Disable sanitizers on macOS test build
- Disallow failures on snap build
dennisyangji pushed a commit to Orthogonalpub/ode_solvespace that referenced this pull request Nov 25, 2025
- Fix release notes by using edge deploy provider, see: travis-ci/dpl#1069
- Deploy only on master branch
- Move to arm64-graviton2
- Rename debian -> ubuntu
- Remove appveyor.yml
- Remove redundant deploy stage in build step names
- Get rid of bash code in files using sh, and explicitly use bash in sign-macos.sh script
- Add missing newline to build-windows.sh
- Build x86 for Windows
- Enable OpenMP in test builds
- Disable sanitizers on macOS test build
- Disallow failures on snap build
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

Successfully merging this pull request may close these issues.

4 participants