mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-19 05:38:41 +01:00
ci: remove release coins icons workflow
This commit is contained in:
committed by
Jan Komárek
parent
0eebb7f44c
commit
60be8ef1bc
45
.github/workflows/release-suite-coin-icons.yml
vendored
45
.github/workflows/release-suite-coin-icons.yml
vendored
@@ -1,45 +0,0 @@
|
||||
name: "[Release] suite coin icons"
|
||||
|
||||
permissions:
|
||||
id-token: write # for fetching the OIDC token
|
||||
contents: read # for actions/checkout
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
# Runs at midnight UTC every day at 01:00 AM CET
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
release-coin-icons:
|
||||
if: github.repository == 'trezor/trezor-suite'
|
||||
environment: production-icons
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
AWS_REGION: "eu-central-1"
|
||||
AWS_CLOUDFRONT_ID: E1ERY5K2OTKKI1
|
||||
COINGECKO_API_KEY: ${{ secrets.COINGECKO_API_KEY }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Download crypto icons
|
||||
run: |
|
||||
yarn install
|
||||
cd suite-common/icons-deprecated
|
||||
yarn download-crypto-icons
|
||||
|
||||
- name: Configure aws credentials
|
||||
uses: aws-actions/configure-aws-credentials@v4
|
||||
with:
|
||||
role-to-assume: arn:aws:iam::538326561891:role/gh_actions_suite_production_icons
|
||||
aws-region: ${{ env.AWS_REGION }}
|
||||
|
||||
- name: Upload crypto icons
|
||||
run: |
|
||||
aws s3 sync suite-common/icons-deprecated/files/cryptoIcons s3://data.trezor.io/suite/icons/coins
|
||||
aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_ID} --paths '/suite/icons/coins/*'
|
||||
Reference in New Issue
Block a user