@@ -45,25 +45,18 @@ jobs:
4545 - name : " Checkout code"
4646 uses : actions/checkout@v4
4747
48- - name : " Get the artefacts 1 "
48+ - name : " Get artifacts: jekyll docs "
4949 uses : actions/download-artifact@v4
5050 with :
5151 path : ./artifacts/jekyll-docs-${{ inputs.version }}
5252 name : jekyll-docs-${{ inputs.version }}
5353
54+ - name : " Get artifacts: schema"
55+ uses : actions/download-artifact@v4
56+ with :
57+ path : ./artifacts/schemas-${{ inputs.version }}
58+ name : schemas-${{ inputs.version }}
5459
55- # - name: "Create release"
56- # id: create_release
57- # uses: actions/create-release@v1
58- # env:
59- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60- # with:
61- # tag_name: ${{ inputs.version }}
62- # release_name: ${{ inputs.version }}
63- # body: |
64- # Release of ${{ inputs.version }}
65- # draft: false
66- # prerelease: ${{ inputs.is_version_prerelease == 'true'}}
6760
6861 - name : Draft Release
6962 env :
@@ -88,16 +81,16 @@ jobs:
8881 "${{ inputs.version }}" \
8982 $RUNNER_TEMP/jekyll-docs-${{ inputs.version }}.tar#jekyll-docs-${{ inputs.version }}
9083
84+ - name : " Upload schema release asset"
85+ env :
86+ GH_TOKEN : ${{ github.token }}
87+ GH_REPO : ${{ github.repository }}
88+ run : |
89+ cp ./artifacts/schemas-${{ inputs.version }}/artifact.tar $RUNNER_TEMP/schemas-${{ inputs.version }}.tar
90+ gh release upload \
91+ "${{ inputs.version }}" \
92+ $RUNNER_TEMP/schemas-${{ inputs.version }}.tar#schemas-${{ inputs.version }}
9193
92- # - name: "Upload jeykll docs release asset"
93- # uses: actions/upload-release-asset@v1
94- # env:
95- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
96- # with:
97- # upload_url: "${{ steps.create_release.outputs.upload_url }}"
98- # asset_path: ./artifacts/jekyll-docs-${{ inputs.version }}/artifact.tar
99- # asset_name: jekyll-docs-${{ inputs.version }}.tar
100- # asset_content_type: "application/gzip"
10194
10295 - name : Publish Release
10396 env :
0 commit comments