Bump github.com/golang/protobuf from 1.5.2 to 1.5.3 #32
Workflow file for this run
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: deploy | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
deploy: | |
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'ReleaseCandidate') | |
name: Deploy flash | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: geertvdc/setup-hub@master | |
- name: Setup go 1.13.1 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.13.1 | |
- name: build | |
run: | | |
go run build/make.go --all-platforms | |
go run build/make.go --all-platforms --distro | |
- name: Create release and deploy assets | |
run: | | |
cd deploy | |
if [ -z "$version" ]; then | |
version=$(ls flash* | head -1 | sed "s/\.[^\.]*$//" | sed "s/flash-//" | sed "s/-[a-z]*\.[a-z0-9_]*$//"); | |
fi | |
artifacts=() | |
dir=`pwd` | |
for i in `ls`; do | |
artifacts+="$dir/$i " | |
done | |
cd .. | |
echo "---------------------------" | |
echo "Updating release v$version" | |
echo "---------------------------" | |
echo -e "Flash 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 flash) | |
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 | |
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 |