-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into dependabot/npm_and_yarn/packages/desktop/…
…esbuild-loader-4.0.2
- Loading branch information
Showing
315 changed files
with
173,781 additions
and
2,213 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
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,9 +1,13 @@ | ||
name: Build and Release Desktop | ||
|
||
env: | ||
NETWORK: Shimmer | ||
NETWORK_CODE: shimmer | ||
|
||
on: | ||
push: | ||
tags: | ||
- desktop-* | ||
- desktop-shimmer-* | ||
workflow_dispatch: | ||
inputs: | ||
debugElectronBuilder: | ||
|
@@ -35,7 +39,7 @@ jobs: | |
- id: set_outputs | ||
name: Set outputs for version, release name, and stage | ||
run: | | ||
VERSION=${GITHUB_REF#refs/*/desktop-} | ||
VERSION=${GITHUB_REF#refs/*/desktop-shimmer-} | ||
RELEASE_NAME=$(echo $VERSION | perl -0777 -pe 's/^([0-9]\d*\.[0-9]\d*\.[0-9]\d*)(?:-([a-z]*)-(\d*))?$/$1 \u$2 $3/') | ||
STAGE=$(echo $VERSION | perl -0777 -pe 's/^([0-9]\d*\.[0-9]\d*\.[0-9]\d*)(?:-([a-z]*)-([0-9]\d*(\.[0-9]\d*)*))?$/$2/') | ||
|
@@ -167,24 +171,24 @@ jobs: | |
if: matrix.os == 'ubuntu-20.04' | ||
|
||
- name: Sign AppImage (Linux) | ||
run: echo $GPG_PASSPHRASE | gpg --pinentry-mode loopback --batch --passphrase-fd 0 --armor --detach-sign --default-key [email protected] firefly-desktop*.AppImage | ||
run: echo $GPG_PASSPHRASE | gpg --pinentry-mode loopback --batch --passphrase-fd 0 --armor --detach-sign --default-key [email protected] firefly-*.AppImage | ||
working-directory: packages/desktop/out | ||
env: | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
if: matrix.os == 'ubuntu-20.04' | ||
|
||
- name: Compute checksums (Linux) | ||
run: for i in `ls | grep 'firefly-desktop*'` ; do sha256sum $i | awk {'print $1'} > $i.sha256 ; done | ||
run: for i in `ls | grep 'firefly-*'` ; do sha256sum $i | awk {'print $1'} > $i.sha256 ; done | ||
working-directory: packages/desktop/out | ||
if: matrix.os == 'ubuntu-20.04' | ||
|
||
- name: Compute checksums (macOS) | ||
run: for i in `ls | grep 'firefly-desktop*'` ; do shasum -a 256 $i | awk {'print $1'} > $i.sha256 ; done | ||
run: for i in `ls | grep 'firefly-*'` ; do shasum -a 256 $i | awk {'print $1'} > $i.sha256 ; done | ||
working-directory: packages/desktop/out | ||
if: matrix.os == 'macos-11' | ||
|
||
- name: Compute checksums (Windows) | ||
run: Get-ChildItem "." -Filter firefly-desktop* | Foreach-Object { $(Get-FileHash -Path $_.FullName -Algorithm SHA256).Hash | Set-Content ($_.FullName + '.sha256') } | ||
run: Get-ChildItem "." -Filter firefly-* | Foreach-Object { $(Get-FileHash -Path $_.FullName -Algorithm SHA256).Hash | Set-Content ($_.FullName + '.sha256') } | ||
working-directory: packages/desktop/out | ||
if: matrix.os == 'windows-2019' | ||
|
||
|
@@ -193,7 +197,7 @@ jobs: | |
with: | ||
name: firefly-desktop-${{ matrix.os }} | ||
path: | | ||
packages/desktop/out/firefly-desktop* | ||
packages/desktop/out/firefly-* | ||
packages/desktop/out/shimmer* | ||
release: | ||
|
@@ -232,20 +236,20 @@ jobs: | |
- name: Preparing release body | ||
run: | | ||
sed -i 's/\r$//' ../../assets/*.sha256 && sed -i '/^$/d' ../../assets/*.sha256 && sed -i -e 's/\(.*\)/\L\1/' ../../assets/*.sha256 | ||
WIN_SHA256=$(cat ../../assets/firefly-desktop-${{ env.VERSION }}.exe.sha256) | ||
LIN_SHA256=$(cat ../../assets/firefly-desktop-${{ env.VERSION }}.AppImage.sha256) | ||
MAC_SHA256=$(cat ../../assets/firefly-desktop-${{ env.VERSION }}.dmg.sha256) | ||
WIN_SHA256=$(cat ../../assets/firefly-${{ env.NETWORK_CODE }}-desktop-${{ env.VERSION }}.exe.sha256) | ||
LIN_SHA256=$(cat ../../assets/firefly-${{ env.NETWORK_CODE }}-desktop-${{ env.VERSION }}.AppImage.sha256) | ||
MAC_SHA256=$(cat ../../assets/firefly-${{ env.NETWORK_CODE }}-desktop-${{ env.VERSION }}.dmg.sha256) | ||
echo $WIN_SHA256 $LIN_SHA256 $MAC_SHA256 | ||
touch CHANGELOG.md | ||
echo '### Changelog' >> CHANGELOG.md | ||
echo '------' >> CHANGELOG.md | ||
echo '### File Hashes' >> CHANGELOG.md | ||
echo '[How to verify the authenticity of your Firefly Desktop download](https://wiki.iota.org/shimmer/introduction/how_tos/verify_download/#verify-your-firefly-desktop-download)' >> CHANGELOG.md | ||
echo '[How to verify the authenticity of your Firefly ${{ env.NETWORK }} Desktop download](https://wiki.iota.org/shimmer/introduction/how_tos/verify_download/#verify-your-firefly-desktop-download)' >> CHANGELOG.md | ||
echo '| File | Platform | SHA256 Hash |' >> CHANGELOG.md | ||
echo '| --- | --- | --- |' >> CHANGELOG.md | ||
echo '| firefly-desktop-${{ env.VERSION }}.exe | Windows |' $WIN_SHA256 '|' >> CHANGELOG.md | ||
echo '| firefly-desktop-${{ env.VERSION }}.AppImage | Linux |' $LIN_SHA256 '|' >> CHANGELOG.md | ||
echo '| firefly-desktop-${{ env.VERSION }}.dmg | MacOS | ' $MAC_SHA256 '|' >> CHANGELOG.md | ||
echo '| firefly-${{ env.NETWORK_CODE }}-desktop-${{ env.VERSION }}.exe | Windows |' $WIN_SHA256 '|' >> CHANGELOG.md | ||
echo '| firefly-${{ env.NETWORK_CODE }}-desktop-${{ env.VERSION }}.AppImage | Linux |' $LIN_SHA256 '|' >> CHANGELOG.md | ||
echo '| firefly-${{ env.NETWORK_CODE }}-desktop-${{ env.VERSION }}.dmg | MacOS | ' $MAC_SHA256 '|' >> CHANGELOG.md | ||
cat CHANGELOG.md | ||
working-directory: packages/desktop | ||
|
||
|
@@ -256,7 +260,7 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Firefly Desktop ${{ env.RELEASE_NAME }} | ||
release_name: Firefly ${{ env.NETWORK }} Desktop ${{ env.RELEASE_NAME }} | ||
body_path: packages/desktop/CHANGELOG.md | ||
draft: true | ||
prerelease: true | ||
|
@@ -267,8 +271,8 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: assets/firefly-desktop-${{ env.VERSION }}.dmg | ||
asset_name: firefly-desktop-${{ env.VERSION }}.dmg | ||
asset_path: assets/firefly-${{ env.NETWORK_CODE }}-desktop-${{ env.VERSION }}.dmg | ||
asset_name: firefly-${{ env.NETWORK_CODE }}-desktop-${{ env.VERSION }}.dmg | ||
asset_content_type: application/octet-stream | ||
|
||
- name: Upload Windows binary asset | ||
|
@@ -277,8 +281,8 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: assets/firefly-desktop-${{ env.VERSION }}.exe | ||
asset_name: firefly-desktop-${{ env.VERSION }}.exe | ||
asset_path: assets/firefly-${{ env.NETWORK_CODE }}-desktop-${{ env.VERSION }}.exe | ||
asset_name: firefly-${{ env.NETWORK_CODE }}-desktop-${{ env.VERSION }}.exe | ||
asset_content_type: application/octet-stream | ||
|
||
- name: Upload Linux binary asset | ||
|
@@ -287,8 +291,8 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: assets/firefly-desktop-${{ env.VERSION }}.AppImage | ||
asset_name: firefly-desktop-${{ env.VERSION }}.AppImage | ||
asset_path: assets/firefly-${{ env.NETWORK_CODE }}-desktop-${{ env.VERSION }}.AppImage | ||
asset_name: firefly-${{ env.NETWORK_CODE }}-desktop-${{ env.VERSION }}.AppImage | ||
asset_content_type: application/octet-stream | ||
|
||
- name: Upload Linux code signature asset | ||
|
@@ -297,13 +301,10 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: assets/firefly-desktop-${{ env.VERSION }}.AppImage.asc | ||
asset_name: firefly-desktop-${{ env.VERSION }}.AppImage.asc | ||
asset_path: assets/firefly-${{ env.NETWORK_CODE }}-desktop-${{ env.VERSION }}.AppImage.asc | ||
asset_name: firefly-${{ env.NETWORK_CODE }}-desktop-${{ env.VERSION }}.AppImage.asc | ||
asset_content_type: application/pgp-signature | ||
|
||
- name: Listing artifacts | ||
run: ls -al assets | ||
|
||
- name: Upload to S3 | ||
run: | | ||
aws s3 cp assets/ s3://iotaledger-files/4a1ddea1-10c1-4f1d-83f0-e14903931a46/releases/ --recursive --include "*" --exclude "*.sha256" --exclude "*.blockmap" --exclude "*.asc" --acl public-read | ||
|
@@ -318,4 +319,4 @@ jobs: | |
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: eu-central-1 | ||
AWS_DEFAULT_REGION: eu-central-1 |
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
Oops, something went wrong.