Skip to content

Commit

Permalink
Update CI CD tools
Browse files Browse the repository at this point in the history
  • Loading branch information
haimkastner committed Jun 11, 2024
1 parent cbc9466 commit 47876b0
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
mkdir android
cp platforms/android/app/build/outputs/bundle/$BUILD_TYPE/app-$BUILD_TYPE.aab android/app-$BUILD_TYPE.aab
cp platforms/android/app/build/outputs/apk/$BUILD_TYPE/app-$BUILD_TYPE.apk android/app-$BUILD_TYPE.apk
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: android
path: android
Expand All @@ -95,7 +95,7 @@ jobs:
if [[ $BRANCH == 'main' ]]; then export REACT_APP_LIGHTWEIGHT_URL=$LIGHTWEIGHT_URL_PROD ; else export REACT_APP_LIGHTWEIGHT_URL=$LIGHTWEIGHT_URL_DEV; fi
if [[ $BRANCH == 'main' ]]; then export REACT_APP_SHOW_VERSION_COMMIT='false' ; else export REACT_APP_SHOW_VERSION_COMMIT='true'; fi
yarn run build
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: www
path: www
Expand All @@ -110,7 +110,7 @@ jobs:
export BRANCH=${GITHUB_REF##*/}
if [[ $BRANCH == 'main' ]]; then export REACT_APP_SHOW_VERSION_COMMIT='false' ; else export REACT_APP_SHOW_VERSION_COMMIT='true'; fi
yarn run build
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: internal
path: internal
Expand All @@ -119,13 +119,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/download-artifact@master
uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Run-Test
Expand Down Expand Up @@ -157,12 +157,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/download-artifact@master
uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: android
path: android
Expand All @@ -183,7 +183,7 @@ jobs:
echo "VERSION=$version" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down

0 comments on commit 47876b0

Please sign in to comment.