Skip to content

Commit c24a69e

Browse files
use cli for upload asset.
1 parent c142011 commit c24a69e

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

.github/workflows/stage-5-publish.yaml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,33 @@ jobs:
7070
GH_TOKEN: ${{ github.token }}
7171
GH_REPO: ${{ github.repository }}
7272
run: |
73-
gh release create "${{ inputs.version }}" \
73+
gh release create \
74+
"${{ inputs.version }}" \
7475
--draft \
7576
--title "${{ inputs.version }}" \
7677
--notes "Release of ${{ inputs.version }}" \
7778
${{ inputs.is_version_prerelease == 'true' && '--prerelease' || '' }}
7879
7980
- name: "Upload jeykll docs release asset"
80-
uses: actions/upload-release-asset@v1
8181
env:
82-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83-
with:
84-
upload_url: "${{ steps.create_release.outputs.upload_url }}"
85-
asset_path: ./artifacts/jekyll-docs-${{ inputs.version }}/artifact.tar
86-
asset_name: jekyll-docs-${{ inputs.version }}.tar
87-
asset_content_type: "application/gzip"
82+
GH_TOKEN: ${{ github.token }}
83+
GH_REPO: ${{ github.repository }}
84+
run: |
85+
gh release upload \
86+
"${{ inputs.version }}" \
87+
./artifacts/jekyll-docs-${{ inputs.version }}/artifact.tar\
88+
#jekyll-docs-${{ inputs.version }}.tar
89+
90+
91+
# - name: "Upload jeykll docs release asset"
92+
# uses: actions/upload-release-asset@v1
93+
# env:
94+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
# with:
96+
# upload_url: "${{ steps.create_release.outputs.upload_url }}"
97+
# asset_path: ./artifacts/jekyll-docs-${{ inputs.version }}/artifact.tar
98+
# asset_name: jekyll-docs-${{ inputs.version }}.tar
99+
# asset_content_type: "application/gzip"
88100

89101
- name: Publish Release
90102
env:

0 commit comments

Comments
 (0)