Skip to content

Commit

Permalink
set version by resource plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 17, 2024
1 parent 723d452 commit aca8ac6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .rultor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,13 @@ release:
mkdir /tmp/objectionary
cp -R eo-runtime/src/main/eo /tmp/objectionary/objects
cp -R eo-runtime/src/test/eo /tmp/objectionary/tests
cp eo-parser/src/main/resources/XMIR.xsd /tmp
cp eo-parser/target/classes/XMIR.xsd /tmp
branch=$(git rev-parse --abbrev-ref HEAD)
git checkout gh-pages
git reset --hard
sudo git config --global --add safe.directory "$(pwd)"
sudo /bin/bash -c "cd '$(pwd)'; git clean -fd"
cp /tmp/XMIR.xsd .
sed -i "s|SNAPSHOT|${tag}|" XMIR.xsd
mkdir -p xsd
cp XMIR.xsd "xsd/XMIR-${tag}.xsd"
git add XMIR.xsd "xsd/XMIR-${tag}.xsd"
Expand Down
2 changes: 1 addition & 1 deletion eo-parser/src/main/resources/XMIR.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="SNAPSHOT" elementFormDefault="qualified">
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="${project.version}" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo>The XMIR schema is used to validate the XMIR documents, which are generated by the EO parser.</xs:appinfo>
<xs:documentation>
Expand Down

0 comments on commit aca8ac6

Please sign in to comment.