Skip to content

Commit

Permalink
Fix rock publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
rosik committed Dec 29, 2020
1 parent f91f4c5 commit 3c3914f
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 64 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backend-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
if: steps.cache-misc-venv.outputs.cache-hit != 'true'

# Setup tarantool
- uses: rosik/setup-tarantool@v1
- uses: tarantool/setup-tarantool@v1
with:
tarantool-version: '1.10'

Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v2
- uses: rosik/setup-tarantool@v1
- uses: tarantool/setup-tarantool@v1
with:
tarantool-version: '${{ matrix.tarantool }}'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/frontend-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1

- uses: rosik/setup-tarantool@v1
- uses: tarantool/setup-tarantool@v1
with:
tarantool-version: '1.10'

Expand Down
56 changes: 29 additions & 27 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,47 @@ name: Publish
on:
push:
branches: [master]
tags:

env:
ROCKS_USERNAME: ${{ secrets.ROCKS_USERNAME }}
ROCKS_PASSWORD: ${{ secrets.ROCKS_PASSWORD }}
CMAKE_LDOC_FIND_REQUIRED: 'YES'
CMAKE_SPHINX_FIND_REQUIRED: 'YES'
tags: ['*']

jobs:
scm-1:
runs-on: ubuntu-latest
publish-scm-1:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Upload rockspec
run: ./upload.sh cartridge-scm-1.rockspec
- uses: tarantool/rocks.tarantool.org/github-action@master
with:
auth: ${{ secrets.ROCKS_AUTH }}
files: cartridge-scm-1.rockspec

release:
runs-on: ubuntu-latest
publish-tag:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-20.04
env:
CMAKE_LDOC_FIND_REQUIRED: 'YES'
CMAKE_SPHINX_FIND_REQUIRED: 'YES'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-python@v2
- run: python -m pip install -r rst/requirements.txt

- name: Install tarantool
run: |
curl -L https://tarantool.io/installer.sh | sudo VER=1.10 bash
sudo apt install -y tarantool tarantool-dev
- uses: tarantool/setup-tarantool@v1
with:
tarantool-version: '2.5'
- run: tarantoolctl rocks install ldoc
--server=https://tarantool.github.io/LDoc/
- run: echo $PWD/.rocks/bin >> $GITHUB_PATH

- name: Install ldoc
run: >
tarantoolctl rocks install --server=http://rocks.moonscript.org
https://raw.githubusercontent.com/tarantool/ldoc/tarantool/ldoc-scm-2.rockspec
# Make a release
- run: echo TAG=${GITHUB_REF##*/} >> $GITHUB_ENV
- run: tarantoolctl rocks new_version --tag ${{ env.TAG }}
- run: tarantoolctl rocks install cartridge-${{ env.TAG }}-1.rockspec
- run: tarantoolctl rocks pack cartridge ${{ env.TAG }}

- name: Upload rockspec
run: |
TAG=${GITHUB_REF##*/}
./release.sh $TAG
./upload.sh release/membership-${TAG}-1.rockspec
./upload.sh release/membership-${TAG}-1.all.rock
- uses: tarantool/rocks.tarantool.org/github-action@master
with:
auth: ${{ secrets.ROCKS_AUTH }}
files: |
cartridge-${{ env.TAG }}-1.rockspec
cartridge-${{ env.TAG }}-1.all.rock
28 changes: 0 additions & 28 deletions release.sh

This file was deleted.

6 changes: 0 additions & 6 deletions upload.sh

This file was deleted.

0 comments on commit 3c3914f

Please sign in to comment.