From 5c43f47c96cf75a03302e02effc4d4ac9855ec5d Mon Sep 17 00:00:00 2001 From: jdabbech-ledger Date: Mon, 29 Jul 2024 11:38:27 +0200 Subject: [PATCH] :green_heart: (ci): Rollback secret flex assets workflows --- .github/workflows/build-desktop.yml | 18 +------------- .github/workflows/build-mobile.yml | 30 ------------------------ .github/workflows/release-final.yml | 4 ++-- .github/workflows/release-prerelease.yml | 4 ++-- 4 files changed, 5 insertions(+), 51 deletions(-) diff --git a/.github/workflows/build-desktop.yml b/.github/workflows/build-desktop.yml index 3a527295ff83..3458531c0c19 100644 --- a/.github/workflows/build-desktop.yml +++ b/.github/workflows/build-desktop.yml @@ -57,15 +57,10 @@ jobs: env: NODE_OPTIONS: "--max-old-space-size=7168" steps: - - name: generate token - id: generate-token - uses: tibdex/github-app-token@v1 - with: - app_id: ${{ secrets.GH_BOT_APP_ID }} - private_key: ${{ secrets.GH_BOT_PRIVATE_KEY }} - uses: actions/checkout@v4 with: ref: ${{ inputs.ref || github.sha }} + - name: Setup git user uses: LedgerHQ/ledger-live/tools/actions/composites/setup-git-user@develop @@ -97,17 +92,6 @@ jobs: uses: LedgerHQ/ledger-live/tools/actions/composites/setup-build-desktop@develop with: os: ${{ matrix.config.name }} - - name: Retrieving internal assets - uses: actions/checkout@v4 - with: - ref: main - repository: LedgerHQ/ledger-live-internal-assets - token: ${{ steps.generate-token.outputs.token }} - path: ledger-live-internal-assets - - - name: Replace assets - id: assets - run: pnpm desktop assets:replace - name: Build the app id: build-app diff --git a/.github/workflows/build-mobile.yml b/.github/workflows/build-mobile.yml index 661e54d5e1f1..6724f88f1e79 100644 --- a/.github/workflows/build-mobile.yml +++ b/.github/workflows/build-mobile.yml @@ -41,12 +41,6 @@ jobs: env: NODE_OPTIONS: "--max-old-space-size=7168" steps: - - name: generate token - id: generate-token - uses: tibdex/github-app-token@v1 - with: - app_id: ${{ secrets.GH_BOT_APP_ID }} - private_key: ${{ secrets.GH_BOT_PRIVATE_KEY }} - uses: actions/checkout@v4 with: ref: ${{ inputs.ref || github.sha }} @@ -74,19 +68,10 @@ jobs: - name: Get short SHA id: slug run: echo "sha8=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - - name: Retrieving internal assets - uses: actions/checkout@v4 - with: - ref: main - repository: LedgerHQ/ledger-live-internal-assets - token: ${{ steps.generate-token.outputs.token }} - path: ledger-live-internal-assets - name: make local version env: VERSION: ${{ steps.version.outputs.clean }}-sha.${{ steps.slug.outputs.sha8 }} run: cd apps/ledger-live-mobile && npm version $VERSION - - name: Replace assets - run: pnpm mobile assets:replace - name: build the app env: ANDROID_KEYSTORE_PASS: staging @@ -111,12 +96,6 @@ jobs: env: NODE_OPTIONS: "--max-old-space-size=7168" steps: - - name: generate token - id: generate-token - uses: tibdex/github-app-token@v1 - with: - app_id: ${{ secrets.GH_BOT_APP_ID }} - private_key: ${{ secrets.GH_BOT_PRIVATE_KEY }} - uses: actions/checkout@v4 with: ref: ${{ inputs.ref || github.sha }} @@ -134,15 +113,6 @@ jobs: turbo-server-token: ${{ secrets.TURBOREPO_SERVER_TOKEN }} - name: install dependencies run: pnpm i --filter="live-mobile..." --filter="ledger-live" --no-frozen-lockfile --unsafe-perm - - name: Retrieving internal assets - uses: actions/checkout@v4 - with: - ref: main - repository: LedgerHQ/ledger-live-internal-assets - token: ${{ steps.generate-token.outputs.token }} - path: ledger-live-internal-assets - - name: Replace assets - run: pnpm mobile assets:replace - name: bundle ios and android js run: | pnpm build:llm:deps --api="http://127.0.0.1:${{ steps.caches.outputs.port }}" --token="${{ secrets.TURBOREPO_SERVER_TOKEN }}" --team="foo" diff --git a/.github/workflows/release-final.yml b/.github/workflows/release-final.yml index 5f656426d1c0..9a5870a97c21 100644 --- a/.github/workflows/release-final.yml +++ b/.github/workflows/release-final.yml @@ -129,7 +129,7 @@ jobs: github.rest.actions.createWorkflowDispatch({ owner: "ledgerhq", repo: "ledger-live-build", - ref: "feat/DSDK-13125-live-assets", + ref: "main", workflow_id: "release-desktop.yml", inputs: { branch: "main" @@ -144,7 +144,7 @@ jobs: github.rest.actions.createWorkflowDispatch({ owner: "ledgerhq", repo: "ledger-live-build", - ref: "feat/DSDK-13125-live-assets", + ref: "main", workflow_id: "release-mobile.yml", inputs: { ref: "main" diff --git a/.github/workflows/release-prerelease.yml b/.github/workflows/release-prerelease.yml index 55cbcaa401aa..4dffdae02783 100644 --- a/.github/workflows/release-prerelease.yml +++ b/.github/workflows/release-prerelease.yml @@ -116,7 +116,7 @@ jobs: github.rest.actions.createWorkflowDispatch({ owner: "ledgerhq", repo: "ledger-live-build", - ref: "feat/DSDK-13125-live-assets", + ref: "main", workflow_id: "pre-desktop.yml", inputs: { ref: "${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref_name }}", @@ -131,7 +131,7 @@ jobs: github.rest.actions.createWorkflowDispatch({ owner: "ledgerhq", repo: "ledger-live-build", - ref: "feat/DSDK-13125-live-assets", + ref: "main", workflow_id: "pre-mobile.yml", inputs: { ref: "${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref_name }}",