Skip to content

Commit

Permalink
💚 (ci): Rollback secret flex assets workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jdabbech-ledger committed Jul 29, 2024
1 parent dcde819 commit 5c43f47
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 51 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/build-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/build-mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-final.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}",
Expand All @@ -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 }}",
Expand Down

0 comments on commit 5c43f47

Please sign in to comment.