diff --git a/.github/workflows/release-on-pr-merge.yml b/.github/workflows/release-on-pr-merge.yml index 19c44fe..80f6466 100644 --- a/.github/workflows/release-on-pr-merge.yml +++ b/.github/workflows/release-on-pr-merge.yml @@ -29,36 +29,18 @@ jobs: - name: Release on github run: | - cd deploy if [ -z "$version" ]; then - version=$(ls gauge-ruby* | head -1 | sed "s/\.[^\.]*$//" | sed "s/gauge-ruby-//" | sed "s/-[a-z]*\.[a-z0-9_]*$//"); + version=$(cd deploy && ls gauge-ruby* | head -1 | sed "s/\.[^\.]*$//" | sed "s/gauge-ruby-//" | sed "s/-[a-z]*\.[a-z0-9_]*$//"); fi echo "VERSION=$version" >> $GITHUB_ENV - artifacts=() - dir=`pwd` - for i in `ls`; do - artifacts+="$dir/$i " - done - cd .. + echo "---------------------------" echo "Updating release v$version" echo "---------------------------" echo -e "Gauge Ruby v$version\n\n" > desc.txt release_description=$(ruby -e "$(curl -sSfL https://github.com/getgauge/gauge/raw/master/build/create_release_text.rb)" getgauge gauge-ruby) echo "$release_description" >> desc.txt - echo "Creating new draft for release v$version" - hub release create -F ./desc.txt "v$version" - rm -rf desc.txt - - sleep 10 - - echo "Start uploading assets..." - for i in `ls $artifacts`; do - hub release edit -m "" -a $i "v$version" - if [ $? -ne 0 ];then - exit 1 - fi - done + gh release create --title "Gauge Ruby v${version}" --notes-file ./desc.txt "v${version}" deploy/* - name: Release on ruby gems run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 213a6a6..e351444 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -69,10 +69,10 @@ jobs: with: ruby-version: ${{ matrix.ruby_version }} - - name: Setup go 1.20.x + - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version-file: 'go.mod' - name: Setup java uses: actions/setup-java@v3 @@ -137,10 +137,10 @@ jobs: with: ruby-version: ${{ matrix.ruby_version }} - - name: Setup go 1.20.x + - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version-file: 'go.mod' - uses: getgauge/setup-gauge@master with: diff --git a/go.mod b/go.mod index 0488f18..145b579 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,7 @@ module github.com/getgauge/gauge-ruby -go 1.20 +go 1.21 -require github.com/getgauge/common v0.0.0-20211105093448-e0aee1ccb217 +require github.com/getgauge/common v0.0.0-20231026140037-b797a8baab99 -require ( - github.com/dmotylev/goproperties v0.0.0-20140630191356-7cbffbaada47 // indirect - gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect -) +require github.com/dmotylev/goproperties v0.0.0-20140630191356-7cbffbaada47 // indirect diff --git a/go.sum b/go.sum index 7230f81..d63556f 100644 --- a/go.sum +++ b/go.sum @@ -1,13 +1,12 @@ github.com/dmotylev/goproperties v0.0.0-20140630191356-7cbffbaada47 h1:sP2APvSdZpfBiousrppBZNOvu+TE79Myq4kkmmrtSuI= github.com/dmotylev/goproperties v0.0.0-20140630191356-7cbffbaada47/go.mod h1:f2V6964+f0p8Asqy8mIK5cKyyVc6MP9PFzGVNRcnYJQ= -github.com/getgauge/common v0.0.0-20211105093448-e0aee1ccb217 h1:eaanWSt7UVhb7ibkVLeAyJe3frTi6ixgv/GPfdnEe2U= -github.com/getgauge/common v0.0.0-20211105093448-e0aee1ccb217/go.mod h1:e3V+gYeNMZt9gGaHqxwnVAwrewx6uauCqT+IE0vZhM8= -github.com/go-check/check v0.0.0-20190902080502-41f04d3bba15/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/getgauge/common v0.0.0-20231026140037-b797a8baab99 h1:RifZZf6ml9ziHeUYrtpEtnvCMOB4H22zjoCqUjpHzM0= +github.com/getgauge/common v0.0.0-20231026140037-b797a8baab99/go.mod h1:p/Q0+qO2bLq08PuxaHrxIgkvKlGGYHyXad33+zKIiXU= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/renovate.json b/renovate.json deleted file mode 100644 index f45d8f1..0000000 --- a/renovate.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": [ - "config:base" - ] -} diff --git a/ruby.json b/ruby.json index 66c3d5e..120b8fe 100644 --- a/ruby.json +++ b/ruby.json @@ -1,6 +1,6 @@ { "id" : "ruby", - "version" : "0.7.0", + "version" : "0.7.1", "description": "ruby support for gauge", "install": { "windows": [],