Skip to content

Commit

Permalink
feat: uncomment autoupdate feature
Browse files Browse the repository at this point in the history
  • Loading branch information
cpl121 committed May 13, 2024
1 parent 2fb8993 commit 48afb8d
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/build-and-release-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and Release Desktop

env:
NETWORK: Canary
NETWORK_CODE: shimmer
NETWORK_CODE: canary

on:
push:
Expand Down Expand Up @@ -118,10 +118,10 @@ jobs:
# Increase network timeout threshold to reduce build failures on Windows
run: yarn --network-timeout 1000000

# - name: Install Sentry CLI
# # Yarn has issues putting binaries in the PATH on Windows
# run: npm i -g @sentry/cli
# if: ${{ startsWith(github.ref, 'refs/tags/desktop') && matrix.os == 'windows-2019' }}
- name: Install Sentry CLI
# Yarn has issues putting binaries in the PATH on Windows
run: npm i -g @sentry/cli
if: ${{ startsWith(github.ref, 'refs/tags/desktop') && matrix.os == 'windows-2019' }}

- name: Set productName
run: node scripts/fix-productName.js
Expand All @@ -131,12 +131,12 @@ jobs:
run: yarn build:${STAGE}
working-directory: packages/desktop
shell: bash
# env:
# HARDCODE_NODE_ENV: true
# SENTRY: ${{ startsWith(github.ref, 'refs/tags/desktop') }}
# SENTRY_DSN: ${{ secrets.SENTRY_DSN_PROD_DESKTOP }}
# SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
# AMPLITUDE_API_KEY: ${{ secrets.AMPLITUDE_API_KEY }}
env:
HARDCODE_NODE_ENV: true
SENTRY: ${{ startsWith(github.ref, 'refs/tags/desktop') }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN_PROD_DESKTOP }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
AMPLITUDE_API_KEY: ${{ secrets.AMPLITUDE_API_KEY }}

- name: Build Electron app (macOS)
run: yarn compile:${STAGE}:mac
Expand Down Expand Up @@ -305,18 +305,18 @@ jobs:
asset_name: firefly-${{ env.NETWORK_CODE }}-desktop-${{ env.VERSION }}.AppImage.asc
asset_content_type: application/pgp-signature

# - 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
# aws s3 cp assets/ s3://iotaledger-files/firefly/releases/ --recursive --include "*" --exclude "*.sha256" --exclude "*.blockmap" --exclude "*.asc" --acl public-read
# 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

# - name: Invalidate CloudFront cache for auto-update files
# run: aws cloudfront create-invalidation --distribution-id E32G4HRED4PO65 --paths "/shimmer*"
# 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
- 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
aws s3 cp assets/ s3://iotaledger-files/firefly/releases/ --recursive --include "*" --exclude "*.sha256" --exclude "*.blockmap" --exclude "*.asc" --acl public-read
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

- name: Invalidate CloudFront cache for auto-update files
run: aws cloudfront create-invalidation --distribution-id E32G4HRED4PO65 --paths "/canary*"
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

0 comments on commit 48afb8d

Please sign in to comment.