@@ -60,17 +60,11 @@ jobs:
60
60
- name : Publish
61
61
run : dotnet publish ${{ env.app_name }}/${{ env.app_name }}.${{ matrix.config.project }}/${{ env.app_name }}.${{ matrix.config.project }}.csproj --configuration Release --output ${{ env.publish_folder }} --self-contained true -p:PublishSingleFile=${{ matrix.config.is_single_file }} --runtime ${{ matrix.config.runtime }} --framework ${{ matrix.config.framework }}
62
62
63
- - name : Get the tag name
64
- id : get_tag_name
65
- if : (github.event_name == 'release' && github.event.action == 'published' && startsWith(github.ref, 'refs/tags/'))
66
- shell : bash
67
- run : echo "::set-output name=TAG_NAME::$(git describe --tags --abbrev=0)"
68
-
69
63
- name : Create Package
70
64
if : (github.event_name == 'release' && github.event.action == 'published' && startsWith(github.ref, 'refs/tags/'))
71
65
shell : bash
72
66
run : |
73
- filename=${{ env.app_name }}-${{ steps.get_tag_name.outputs.TAG_NAME }}-${{ matrix.config.runtime }}
67
+ filename=${{ env.app_name }}-${{ matrix.config.runtime }}
74
68
if [[ "${{ runner.os }}" == 'Windows' ]]; then
75
69
7z a $filename.zip ./${{ env.publish_folder }}/*
76
70
else
81
75
if : (github.event_name == 'release' && github.event.action == 'published' && startsWith(github.ref, 'refs/tags/'))
82
76
with :
83
77
name : ${{ matrix.config.runtime }} Release
84
- path : ${{ env.app_name }}-${{ steps.get_tag_name.outputs.TAG_NAME }}-${{ matrix.config.runtime }}.zip
78
+ path : ${{ env.app_name }}-${{ matrix.config.runtime }}.zip
85
79
86
80
- uses : actions/upload-artifact@v2
87
81
if : (github.event_name == 'push' || github.event_name == 'pull_request')
@@ -114,19 +108,13 @@ jobs:
114
108
runtime : osx-x64
115
109
}
116
110
steps :
117
- - name : Get the tag name
118
- id : get_tag_name
119
- if : (github.event_name == 'release' && github.event.action == 'published' && startsWith(github.ref, 'refs/tags/'))
120
- shell : bash
121
- run : echo "::set-output name=TAG_NAME::$(git describe --tags --abbrev=0)"
122
-
123
111
- name : Get release
124
112
id : get_release
125
113
uses :
bruceadams/[email protected]
126
114
env :
127
115
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
128
116
129
- - name : Download extension artifacts
117
+ - name : Download artifacts
130
118
uses : actions/download-artifact@v2
131
119
with :
132
120
name : ${{ matrix.config.runtime }} Release
@@ -137,6 +125,6 @@ jobs:
137
125
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
138
126
with :
139
127
upload_url : ${{ steps.get_release.outputs.upload_url }}
140
- asset_path : ${{ env.app_name }}-${{ steps.get_tag_name.outputs.TAG_NAME }}-${{ matrix.config.runtime }}.zip
141
- asset_name : ${{ env.app_name }}-${{ steps.get_tag_name.outputs.TAG_NAME }}-${{ matrix.config.runtime }}.zip
128
+ asset_path : ${{ env.app_name }}-${{ matrix.config.runtime }}.zip
129
+ asset_name : ${{ env.app_name }}-${{ matrix.config.runtime }}.zip
142
130
asset_content_type : application/zip
0 commit comments