Makes sure Gradle project doesn't use com.r3.internal.gradle.plugins.r3Publish
Gradle plugin for publishing, as this is tied to internal R3 infrastructure.
Instead corda.common-publishing
should be used, but this action doesn't
check that.
Create a Github Action and add a step like this
name: <NAME OF THE ACTIONS>
on:
push:
branches: [ BRANCHES ]
pull_request:
branches: [ BRANCHES ]
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: corda/check-correct-publish-plugin-is-in-use-action@v1
Versioning for this projects follows semantic versioning.
For each version a tag is created with v
prefix, ie:
- version
1.0.0
has tagv1.0.0
- version
1.0.1
has tagv1.0.1
and so on.
Additionally, another tag with for the release major version should always track the latest release, ie:
v1
should point to the same point as the latest ofv1.x.x
tagv2
should point to the same point as the latest ofv2.x.x
tag
and so on. That was any backward compatibile changes to this action are
automatically applied if a step uses v1
tag, for example.