forked from anyproto/anytype-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
247 changed files
with
3,675 additions
and
2,566 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,6 +149,64 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{secrets.TOKEN}} | ||
|
||
- name: debug | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
echo "list dist/:" | ||
ls -alh dist/ | ||
echo "list artifacts/:" | ||
ls -alh artifacts/ | ||
- name: debug Windows | ||
if: matrix.os == 'windows-latest' | ||
shell: pwsh | ||
run: | | ||
Get-ChildItem -Path dist | Format-Table -Property Mode, LastWriteTime, Length, Name | ||
Get-ChildItem -Path artifacts | Format-Table -Property Mode, LastWriteTime, Length, Name | ||
- name: Upload artifacts to HTTP server | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
RELEASE_VERSION=$( echo "$GITHUB_REF_NAME" | perl -pe 's/^[a-zA-Z]+//' ) | ||
cd artifacts/ | ||
for FILE in *; do | ||
UPLOAD_URL="https://publish-releases.anytype.io/desktop/upload/${RELEASE_VERSION}/${FILE}" | ||
echo "Uploading files to ${UPLOAD_URL}" | ||
curl \ | ||
--header "Authorization: Bearer ${{ secrets.PUBLISH_RELEASES_TOKEN }}" \ | ||
--upload-file ${FILE} \ | ||
${UPLOAD_URL} | ||
done | ||
cd ../dist/ | ||
for FILE in *.yml; do | ||
UPLOAD_URL="https://publish-releases.anytype.io/desktop/upload/${RELEASE_VERSION}/${FILE}" | ||
echo "Uploading files to ${UPLOAD_URL}" | ||
curl \ | ||
--header "Authorization: Bearer ${{ secrets.PUBLISH_RELEASES_TOKEN }}" \ | ||
--upload-file ${FILE} \ | ||
${UPLOAD_URL} | ||
done | ||
- name: Upload artifacts to HTTP server Windows | ||
if: matrix.os == 'windows-latest' | ||
shell: pwsh | ||
run: | | ||
$releaseVersion = $env:GITHUB_REF_NAME -replace '^[a-zA-Z]+', '' | ||
$files = Get-ChildItem -File artifacts | ||
foreach ($file in $files) { | ||
$encodedFileName = [System.Uri]::EscapeDataString($file.Name) | ||
$uploadUrl = "https://publish-releases.anytype.io/desktop/upload/$releaseVersion/$encodedFileName" | ||
echo "Uploading files to $uploadUrl" | ||
curl.exe -H "Authorization: Bearer ${{ secrets.PUBLISH_RELEASES_TOKEN }}" -T $file.FullName $uploadUrl | ||
} | ||
$yml_files = Get-ChildItem -File dist -Filter *.yml | ||
foreach ($file in $yml_files) { | ||
$encodedFileName = [System.Uri]::EscapeDataString($file.Name) | ||
$uploadUrl = "https://publish-releases.anytype.io/desktop/upload/$releaseVersion/$encodedFileName" | ||
echo "Uploading files to $uploadUrl" | ||
curl.exe -H "Authorization: Bearer ${{ secrets.PUBLISH_RELEASES_TOKEN }}" -T $file.FullName $uploadUrl | ||
} | ||
- name: Delete old releases | ||
uses: dev-drprasad/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,5 @@ nmh.log | |
[0-9]*.js.map | ||
extension.crx | ||
extension.pem | ||
extension.zip | ||
extension.zip | ||
cmaps/* |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.35.6 | ||
0.36.0-rc3 |
Oops, something went wrong.