@@ -78,21 +78,16 @@ jobs:
78
78
sudo mv ./box /usr/local/bin
79
79
80
80
- name : Build Application PHAR
81
- run : |
82
- .github/build-phar.sh
83
- ls -al ./example.phar
84
- cat ".git/${{ github.ref }}"
81
+ run : .github/build-phar.sh
85
82
86
83
- name : Get Git Version
87
84
id : get-version
88
85
run : |
89
86
echo ::set-output name=version::${GITHUB_REF#refs/tags/}
90
87
echo 'Pushing version ${{ steps.get-version.outputs.version }}'
91
88
92
- - name : Get Application Version
93
- # Self-test
94
- run : |
95
- ./example.phar --version
89
+ - name : Self-Test
90
+ run : ./example.phar --version
96
91
97
92
- name : Create Release
98
93
uses : ncipollo/release-action@v1
@@ -101,35 +96,7 @@ jobs:
101
96
name : ${{ steps.get-version.outputs.version }}
102
97
tag : ${{ steps.get-version.outputs.version }}
103
98
body : ' Next stable release.'
99
+ # This will update existing tags if any
104
100
allowUpdates : true
105
101
artifact : example.phar
106
102
artifactContentType : application/x-php
107
-
108
- # - name: Create Release
109
- # uses: sondreb/action-release@master
110
- # with:
111
- # token: ${{ secrets.GITHUB_TOKEN }}
112
- # files: 'example.phar'
113
- # folder: './'
114
- # tag: ${{ steps.get-version.outputs.version }}
115
- # name: ${{ steps.get-version.outputs.version }}
116
- # body: 'Next stable release.'
117
- # # This will create a draft
118
- # draft: true
119
- # prerelease: false
120
-
121
- # - name: Upload Release Asset
122
- # id: upload-release-asset
123
- # uses: actions/upload-release-asset@v1
124
- # env:
125
- # # This token is provided by Actions, you do not need to create your own token
126
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
127
- # with:
128
- # # This pulls from the 'Create Release' step above,
129
- # # referencing it's ID to get its outputs object,
130
- # # which include a 'upload_url'. See this blog post for more info:
131
- # # https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
132
- # upload_url: ${{ steps.create-release.outputs.upload_url }}
133
- # asset_path: ./example.phar
134
- # asset_name: example.phar
135
- # asset_content_type: application/x-php
0 commit comments