File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 1
- name : build
1
+ name : main
2
2
on : [ push, pull_request ]
3
3
jobs :
4
4
test :
@@ -121,3 +121,25 @@ jobs:
121
121
run : |
122
122
curl -LO https://scrutinizer-ci.com/ocular.phar
123
123
php ocular.phar code-coverage:upload --format=php-clover coverage-clover.xml
124
+
125
+ release :
126
+ runs-on : ubuntu-latest
127
+ if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
128
+ steps :
129
+ - uses : actions/checkout@v2
130
+ with :
131
+ ref : ${{ github.ref }} # Otherwise our annotated tag is not fetched and we cannot get correct version
132
+
133
+ # Create release
134
+ - name : Get release info
135
+ id : release-info
136
+ run : |
137
+ echo "::set-output name=subject::$(git tag --format '%(contents:subject)' --points-at)"
138
+ git tag --format '%(contents:body)' --points-at > release-body.txt
139
+ - uses : actions/create-release@v1
140
+ env :
141
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
142
+ with :
143
+ tag_name : ${{ github.ref }}
144
+ release_name : ${{ steps.release-info.outputs.subject }}
145
+ body_path : release-body.txt
Original file line number Diff line number Diff line change 1
1
# GraphQL Upload
2
2
3
- [ ![ Build Status] ( https://github.com/ecodev/graphql-upload/workflows/build /badge.svg )] ( https://github.com/ecodev/graphql-upload/actions )
3
+ [ ![ Build Status] ( https://github.com/ecodev/graphql-upload/workflows/main /badge.svg )] ( https://github.com/ecodev/graphql-upload/actions )
4
4
[ ![ Code Quality] ( https://scrutinizer-ci.com/g/Ecodev/graphql-upload/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/Ecodev/graphql-upload/?branch=master )
5
5
[ ![ Code Coverage] ( https://scrutinizer-ci.com/g/Ecodev/graphql-upload/badges/coverage.png?b=master )] ( https://scrutinizer-ci.com/g/Ecodev/graphql-upload/?branch=master )
6
6
[ ![ Total Downloads] ( https://poser.pugx.org/ecodev/graphql-upload/downloads.png )] ( https://packagist.org/packages/ecodev/graphql-upload )
You can’t perform that action at this time.
0 commit comments