Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: publish

on:
push:
branches:
- master
tags:
- '**'

jobs:
publish-master:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-20.04-self-hosted
steps:
- uses: actions/checkout@v4
- uses: tarantool/rocks.tarantool.org/github-action@master
with:
auth: ${{ secrets.ROCKS_AUTH }}
files: cv-scm-1.rockspec

publish-tag:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-20.04-self-hosted
steps:
- uses: actions/checkout@v4
- run: |
export GIT_TAG=${GITHUB_REF#refs/*/}
echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV
sed -e "s/branch = \".\+\"/tag = \"$GIT_TAG\"/g" -e "s/version = '.\+'/version = \"$GIT_TAG-1\"/g" cv-scm-1.rockspec > cv-$GIT_TAG-1.rockspec
- uses: tarantool/rocks.tarantool.org/github-action@master
with:
auth: ${{ secrets.ROCKS_AUTH }}
files: cv-${{ env.GIT_TAG }}-1.rockspec
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ endif()

find_program(LUATEST_BIN luatest)
if(NOT LUATEST_BIN)
message(FATAL_ERROR "luatest not found in PATH")
message(WARNING "luatest not found in PATH")
endif()

# Set CFLAGS
Expand Down
6 changes: 3 additions & 3 deletions cv-scm-1.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package = 'cv'
version = 'scm-1'

source = {
url = 'git+https://github.com/unera/cv.git';
branch = 'main';
url = "git+ssh://git@github.com:tarantool/c-validator.git",
branch = 'master';
}

description = {
Expand All @@ -18,7 +18,7 @@ Supports: maps, arrays, oneof, rename, defaults,
transforms, constraints, uuid, tuple, int64/uint64,
box.NULL, and OpenAPI 3.1 schema serialization.
]];
homepage = 'https://github.com/unera/cv';
homepage = 'https://github.com/tarantool/c-validator';
license = 'BSD-2-Clause';
}

Expand Down
Loading