diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index 876dbd4..348ccb8 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -99,18 +99,17 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Install GitHub CLI + run: sudo apt-get install -y gh + - name: Upload Artifact to Release - uses: actions/upload-release-asset@v1 - with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: artifacts/${{ env.ARTIFACT }} - asset_name: ${{ env.ARTIFACT }} - asset_content_type: application/zip + run: | + gh release upload v${{ github.run_number }} artifacts/${{ env.ARTIFACT }} --clobber + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload Algolia Artifact to Release - uses: actions/upload-release-asset@v1 - with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: artifacts/${{ env.ALGOLIA_ARTIFACT }} - asset_name: ${{ env.ALGOLIA_ARTIFACT }} - asset_content_type: application/zip \ No newline at end of file + run: | + gh release upload v${{ github.run_number }} artifacts/${{ env.ALGOLIA_ARTIFACT }} --clobber + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file