Skip to content

Conversation

@jimschubert
Copy link
Member

Relies on #172 before merging this.

This breaks master build from pull request builds, which will have different use cases.

Creates a release workflow which can be triggered manually from the actions tab in GitHub. This will tag/release automatically, and rollback if necessary. I haven't tested it, but it should work as-is.

run: ./mvnw -V -B -ntp -ff install '-DskipTests=true' '-Dmaven.javadoc.skip=true'
- name: Run tests
run: ./mvnw -V -B -ntp -ff verify
run: ./mvnw -V -B -ntp -ff clean verify
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're running from scratch every time the workflow is being executed, the clean phase can be skipped.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar enough with the project to comment on this. However, it's usually best practice to ensure outputs are cleaned through the build tool before running a build in case there are any stale build outputs inadvertently committed to source.

restore-keys: |
${{ runner.os }}-maven-
- name: Run tests
run: ./mvnw -V -B -ntp -ff clean verify
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're running from scratch every time the workflow is being executed, the clean phase can be skipped.

@joschi joschi requested review from jmini and quen2404 October 13, 2020 06:28
Copy link
Contributor

@joschi joschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@joschi joschi linked an issue Oct 13, 2020 that may be closed by this pull request
2 tasks
@joschi joschi added this to the Release 2.0.0 milestone Oct 13, 2020
@jimschubert jimschubert merged commit 132478a into master Oct 14, 2020
@jimschubert jimschubert deleted the ci-release-management branch October 14, 2020 01:07
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.

Migrate openapi-diff artifacts to OpenAPITools (Maven & Docker)

3 participants