-
-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(release): use BackBlaze B2 for binaries storage instead of Github
- Loading branch information
Showing
3 changed files
with
36 additions
and
13 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 |
---|---|---|
|
@@ -170,11 +170,11 @@ jobs: | |
mkdir ./secret | ||
echo $APPLE_PRIVATE_KEY | base64 --decode > ./secret/apple_private_key.p8 | ||
- name: Conveyor build apps | ||
- name: Conveyor make site | ||
uses: hydraulic-software/conveyor/actions/[email protected] | ||
if: inputs.github_release | ||
with: | ||
command: -f conveyor.ci.conf make site -o ./output/release | ||
command: -f conveyor.ci.conf make site -o ./output/site | ||
signing_key: ${{ secrets.CONVEYOR_SIGNING_KEY }} | ||
agree_to_license: 1 | ||
env: | ||
|
@@ -187,20 +187,38 @@ jobs: | |
name: conveyor-make-site | ||
path: ~/.cache/hydraulic/conveyor/logs/log.latest.txt | ||
|
||
- name: Adjust Conveyor output | ||
- name: Conveyor make old-site | ||
uses: hydraulic-software/conveyor/actions/[email protected] | ||
if: inputs.github_release | ||
with: | ||
command: -f conveyor.ci.conf make old-site -o ./output/old-site | ||
signing_key: ${{ secrets.CONVEYOR_SIGNING_KEY }} | ||
agree_to_license: 1 | ||
env: | ||
APPLE_ISSUER_ID: ${{ secrets.APPLE_ISSUER_ID }} | ||
APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }} | ||
- name: Upload Conveyor log | ||
if: always() && inputs.github_release | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: conveyor-make-old-site | ||
path: ~/.cache/hydraulic/conveyor/logs/log.latest.txt | ||
|
||
- name: Adjust Conveyor old-site output | ||
if: inputs.github_release | ||
run: | | ||
mkdir ./output/site | ||
mv ./output/release/download.html ./output/site/index.html | ||
mv ./output/release/icon.svg ./output/site/ | ||
rm ./output/old-site/download.html | ||
rm ./output/old-site/icon.svg | ||
- name: Deploy download page to Github Pages | ||
- name: Upload Conveyor site to B2 | ||
if: inputs.github_release | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./output/site | ||
cname: download.komga.org | ||
uses: jakejarvis/s3-sync-action@master | ||
env: | ||
AWS_S3_BUCKET: ${{ secrets.B2_BUCKET }} | ||
AWS_S3_ENDPOINT: 'https://s3.us-east-005.backblazeb2.com' | ||
AWS_ACCESS_KEY_ID: ${{ secrets.B2_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.B2_SECRET_ACCESS_KEY }} | ||
SOURCE_DIR: 'output/site' | ||
|
||
- name: JReleaser Release | ||
if: inputs.github_release | ||
|
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