Skip to content

Commit

Permalink
devop: 🔧 merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kvhnuke committed Oct 24, 2024
2 parents 17b85da + 0c0f3f6 commit de672a8
Show file tree
Hide file tree
Showing 728 changed files with 101,636 additions and 66,984 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/add-to-codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ jobs:
docker run $ci_env --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run codecov"
- name: upload to codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
7 changes: 1 addition & 6 deletions .github/workflows/add-to-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,8 @@ jobs:
- name: npm install
run: docker run -it --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm install --legacy-peer-deps"

- name: create .env
run: |
touch .env
echo INTERCOM_ID=${{secrets.INTERCOM_ID}} >> .env
- name: build
run: docker run --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:history"
run: docker run -e INTERCOM_ID="${{secrets.INTERCOM_ID}}" -e WALLET_CONNECT_PROJECT_ID="${{secrets.WALLET_CONNECT_PROJECT_ID}}" --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:history"

- name: add to develop
env:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/add-to-mewbuilds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ jobs:

- name: create .env
run: |
touch .env
echo INTERCOM_ID=${{secrets.INTERCOM_ID}} >> .env
git config --global url.https://github.com/.insteadOf ssh://git@github.com/
docker run --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm install"
- name: build
run: docker run --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:hash"
run: docker run -e INTERCOM_ID="${{secrets.INTERCOM_ID}}" -e WALLET_CONNECT_PROJECT_ID="${{secrets.WALLET_CONNECT_PROJECT_ID}}" --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:hash"

- name: post build
if: github.base_ref == ''
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-offline-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push]

jobs:
offline-build:
if: ${{contains(github.ref, 'offline')}}
if: ${{contains(github.ref, 'offline') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/deploy-live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,8 @@ jobs:
- name: npm install
run: docker run -it --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm install --legacy-peer-deps"

- name: create .env
run: |
touch .env
echo INTERCOM_ID=${{secrets.INTERCOM_ID}} >> .env
- name: build
run: docker run --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:history:sourcemaps"
run: docker run -e INTERCOM_ID="${{secrets.INTERCOM_ID}}" -e WALLET_CONNECT_PROJECT_ID="${{secrets.WALLET_CONNECT_PROJECT_ID}}" --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:history:sourcemaps"

- name: Get release tag
id: get_release_tag
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/deploy-to-ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,8 @@ jobs:
- name: npm install
run: docker run -it --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm install --legacy-peer-deps"

- name: create .env
run: |
touch .env
echo INTERCOM_ID=${{secrets.INTERCOM_ID}} >> .env
- name: build
run: docker run --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:hash"
run: docker run -e INTERCOM_ID="${{secrets.INTERCOM_ID}}" -e WALLET_CONNECT_PROJECT_ID="${{secrets.WALLET_CONNECT_PROJECT_ID}}" --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:hash"

- name: deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@releases/v3
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,14 @@ jobs:
gpg --allow-secret-key-import --import mew-sign.gpg
mkdir release
- name: create .env
run: |
touch .env
echo INTERCOM_ID=${{secrets.INTERCOM_ID}} >> .env
- name: build
run: |
docker run --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build"
docker run -e INTERCOM_ID="${{secrets.INTERCOM_ID}}" -e WALLET_CONNECT_PROJECT_ID="${{secrets.WALLET_CONNECT_PROJECT_ID}}" --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build"
cd dist && zip -r ../release/MyEtherWallet-${{ steps.get_release_tag.outputs.VERSION }}.zip * && cd ..
- name: build hash
run: |
docker run --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:nohash"
docker run -e INTERCOM_ID="${{secrets.INTERCOM_ID}}" -e WALLET_CONNECT_PROJECT_ID="${{secrets.WALLET_CONNECT_PROJECT_ID}}" --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:nohash"
cd dist && zip -r ../release/MyEtherWallet-${{ steps.get_release_tag.outputs.VERSION }}-Hash.zip * && cd ..
- name: build offline
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/run-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,8 @@ jobs:
- name: npm install
run: docker run -it --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm install --legacy-peer-deps"

- name: create .env
run: |
touch .env
echo INTERCOM_ID=${{secrets.INTERCOM_ID}} >> .env
- name: build
run: docker run --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:hash"
run: docker run -e INTERCOM_ID="${{secrets.INTERCOM_ID}}" -e WALLET_CONNECT_PROJECT_ID="${{secrets.WALLET_CONNECT_PROJECT_ID}}" --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:hash"

- name: add to codecov
run: |
Expand All @@ -42,6 +37,6 @@ jobs:
docker run $ci_env --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run codecov"
- name: upload to codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ tests_output/
release
chrome-extension
.env
.history

# Generated files
src/_generated


# Apollo files
src/apollo/global/globalTypes.json
src/apollo/global/globalTypes.json
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
Loading

0 comments on commit de672a8

Please sign in to comment.