Skip to content

Commit e212a4e

Browse files
get rid of version (#43)
Co-authored-by: CommonLoon102 <[email protected]>
1 parent 8afeae9 commit e212a4e

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

.github/workflows/build.yml

+5-17
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,11 @@ jobs:
6060
- name: Publish
6161
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 }}
6262

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-
6963
- name: Create Package
7064
if: (github.event_name == 'release' && github.event.action == 'published' && startsWith(github.ref, 'refs/tags/'))
7165
shell: bash
7266
run: |
73-
filename=${{ env.app_name }}-${{ steps.get_tag_name.outputs.TAG_NAME }}-${{ matrix.config.runtime }}
67+
filename=${{ env.app_name }}-${{ matrix.config.runtime }}
7468
if [[ "${{ runner.os }}" == 'Windows' ]]; then
7569
7z a $filename.zip ./${{ env.publish_folder }}/*
7670
else
@@ -81,7 +75,7 @@ jobs:
8175
if: (github.event_name == 'release' && github.event.action == 'published' && startsWith(github.ref, 'refs/tags/'))
8276
with:
8377
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
8579

8680
- uses: actions/upload-artifact@v2
8781
if: (github.event_name == 'push' || github.event_name == 'pull_request')
@@ -114,19 +108,13 @@ jobs:
114108
runtime: osx-x64
115109
}
116110
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-
123111
- name: Get release
124112
id: get_release
125113
uses: bruceadams/[email protected]
126114
env:
127115
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
128116

129-
- name: Download extension artifacts
117+
- name: Download artifacts
130118
uses: actions/download-artifact@v2
131119
with:
132120
name: ${{ matrix.config.runtime }} Release
@@ -137,6 +125,6 @@ jobs:
137125
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
138126
with:
139127
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
142130
asset_content_type: application/zip

0 commit comments

Comments
 (0)