mirror of
https://github.com/diced/zipline.git
synced 2025-12-05 20:40:12 -08:00
fix: ishare import issues
This commit is contained in:
4
.github/workflows/docker-release.yml
vendored
4
.github/workflows/docker-release.yml
vendored
@@ -33,7 +33,7 @@ jobs:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
@@ -52,7 +52,6 @@ jobs:
|
||||
${{ secrets.DOCKERHUB_USERNAME }}/zipline:${{ steps.version.outputs.zipline_version }}-${{ matrix.arch }}
|
||||
${{ secrets.DOCKERHUB_USERNAME }}/zipline:${{ steps.version.outputs.zipline_version }}-${{ steps.sha.outputs.short_sha }}-${{ matrix.arch }}
|
||||
|
||||
|
||||
amend-builds:
|
||||
runs-on: ubuntu-24.04
|
||||
needs: push
|
||||
@@ -103,7 +102,6 @@ jobs:
|
||||
--amend ${{ secrets.DOCKERHUB_USERNAME }}/zipline:${{ steps.version.outputs.zipline_version }}-amd64 \
|
||||
--amend ${{ secrets.DOCKERHUB_USERNAME }}/zipline:${{ steps.version.outputs.zipline_version }}-arm64
|
||||
|
||||
|
||||
- name: push manifests
|
||||
run: |
|
||||
docker manifest push ghcr.io/diced/zipline:${{ steps.version.outputs.zipline_version }}
|
||||
|
||||
@@ -8,12 +8,11 @@ export function ishare(token: string, type: 'file' | 'url', options: GeneratorOp
|
||||
}
|
||||
|
||||
const config = {
|
||||
name: `Zipline - ${window.location.origin} - ${type === 'file' ? 'File' : 'URL'}`,
|
||||
requestURL: `${window.location.origin}/api/upload`,
|
||||
requesturl: `${window.location.origin}/api/upload`,
|
||||
name: `Zipline - ${window.location.origin} - File`,
|
||||
headers: {},
|
||||
fileFormName: 'file',
|
||||
requestBodyType: 'multipartFormData',
|
||||
responseURL: `{{files[0].url}}`,
|
||||
fileformname: 'file',
|
||||
responseurl: '{{files[0].url}}',
|
||||
};
|
||||
|
||||
const toAddHeaders: UploadHeaders = {
|
||||
@@ -44,12 +43,6 @@ export function ishare(token: string, type: 'file' | 'url', options: GeneratorOp
|
||||
delete toAddHeaders['x-zipline-max-views'];
|
||||
}
|
||||
|
||||
// if (options.noJson === true) {
|
||||
// // unsupported in ishare
|
||||
// } else {
|
||||
// delete toAddHeaders['x-zipline-no-json'];
|
||||
// }
|
||||
|
||||
if (options.addOriginalName === true && type === 'file') {
|
||||
toAddHeaders['x-zipline-original-name'] = 'true';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user