fix tar-server.sh do not update npm #186
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test-release | |
on: | |
push: | |
branches: | |
- release/* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: test release | |
run: | | |
echo $GITHUB_SHA | |
echo $GITHUB_REF | |
echo $GITHUB_REF > /tmp/$GITHUB_SHA | |
release=$(sed "s/refs\/heads\/release\///g" /tmp/$GITHUB_SHA) | |
echo $release | |
rm -rf TarsDocker | |
git clone https://github.com/TarsCloud/TarsDocker | |
cd TarsDocker/framework | |
rm -rf TarsWeb | |
git clone https://github.com/TarsCloud/TarsWeb | |
cd TarsWeb | |
webLatestTag=$(git describe --tags `git rev-list --tags --max-count=1` --abbrev=0 --always) | |
cd .. | |
./build-docker.sh release/$release $webLatestTag $release |