Skip to content

Commit

Permalink
[CI] Another attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
mytonwalletorg committed Mar 9, 2024
1 parent d255511 commit 7f70a00
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 59 deletions.
96 changes: 48 additions & 48 deletions .github/workflows/package-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ jobs:
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Use Node.js 18
uses: actions/setup-node@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 18.x

- name: Cache node modules
id: npm-cache
uses: actions/cache@v4
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }}
Expand Down Expand Up @@ -89,25 +89,25 @@ jobs:
fi
- name: Upload macOS x64 artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: ${{ env.APP_NAME }}-x64.dmg
path: dist-electron/${{ env.APP_NAME }}-x64.dmg

- name: Upload macOS arm64 artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: ${{ env.APP_NAME }}-arm64.dmg
path: dist-electron/${{ env.APP_NAME }}-arm64.dmg

- name: Upload Linux artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: ${{ env.APP_NAME }}-x86_64.AppImage
path: dist-electron/${{ env.APP_NAME }}-x86_64.AppImage

- name: Upload Windows artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: ${{ env.APP_NAME }}-x64.exe
path: dist-electron/${{ env.APP_NAME }}-x64.exe
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
- name: Download Windows package
id: download-artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: ${{ env.FILE_NAME }}

Expand All @@ -164,7 +164,7 @@ jobs:
shell: cmd
run: smctl.exe sign --keypair-alias=%KEYPAIR_ALIAS% --input "%FILE_PATH%\%FILE_NAME%"

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
name: ${{ env.FILE_NAME }}
path: ${{ env.FILE_NAME }}
Expand All @@ -175,16 +175,16 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Use Node.js 18
uses: actions/setup-node@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 18.x

- name: Cache node modules
id: npm-cache
uses: actions/cache@v4
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -206,13 +206,13 @@ jobs:
fi
- name: Upload Chrome extension artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: ${{ env.APP_NAME }}-chrome.zip
path: ${{ env.APP_NAME }}-chrome.zip

- name: Upload Firefox extension artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: ${{ env.APP_NAME }}-firefox.zip
path: ${{ env.APP_NAME }}-firefox.zip
Expand All @@ -225,12 +225,12 @@ jobs:
if: vars.PUBLISH_REPO != ''
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Use Node.js 18
uses: actions/setup-node@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 18.x

- name: Set environment variables
id: variables
Expand All @@ -240,7 +240,7 @@ jobs:
echo "FIREFOX_FILE_NAME=${{ env.APP_NAME }}-firefox.zip" >> "$GITHUB_ENV"
- name: Download Chrome extension artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: ${{ env.CHROME_FILE_NAME }}

Expand All @@ -260,12 +260,12 @@ jobs:
if: vars.PUBLISH_REPO != ''
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Use Node.js 18
uses: actions/setup-node@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 18.x

- name: Set environment variables
id: variables
Expand All @@ -274,7 +274,7 @@ jobs:
echo "FIREFOX_FILE_NAME=${{ env.APP_NAME }}-firefox.zip" >> "$GITHUB_ENV"
- name: Download Firefox extension artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: ${{ env.FIREFOX_FILE_NAME }}

Expand Down Expand Up @@ -303,12 +303,12 @@ jobs:
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Use Node.js 18
uses: actions/setup-node@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 18.x

- name: Set environment variables
id: variables
Expand All @@ -317,7 +317,7 @@ jobs:
echo "CHROME_FILE_NAME=${{ env.APP_NAME }}-chrome.zip" >> "$GITHUB_ENV"
- name: Download Chrome extension artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: ${{ env.CHROME_FILE_NAME }}

Expand All @@ -343,7 +343,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3

- name: Calculate sha256 hashes # */*.apk
run: |
Expand All @@ -352,7 +352,7 @@ jobs:
sha256sum release/* >${{ env.HASH_FILENAME }}
- name: Upload hash artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: ${{ env.HASH_FILENAME }}
path: ${{ env.HASH_FILENAME }}
Expand All @@ -364,16 +364,16 @@ jobs:
if: github.event_name != 'workflow_dispatch' && github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Use Node.js 18
uses: actions/setup-node@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 18.x

- name: Cache node modules
id: npm-cache
uses: actions/cache@v4
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }}
Expand Down Expand Up @@ -427,7 +427,7 @@ jobs:
fi
- name: Upload APK artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: ${{ env.APP_NAME }}.apk
path: mobile/android/app/build/outputs/apk/release/app-release.apk
Expand All @@ -439,16 +439,16 @@ jobs:
if: github.event_name != 'workflow_dispatch' && github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Use Node.js 18
uses: actions/setup-node@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 18.x

- name: Cache node modules
id: npm-cache
uses: actions/cache@v4
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }}
Expand Down Expand Up @@ -535,13 +535,13 @@ jobs:
- name: Download Windows package
id: download-windows
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: ${{ env.WINDOWS_FILE_NAME }}

# - name: Download Android package
# id: download-android
# uses: actions/download-artifact@v4
# uses: actions/download-artifact@v3
# with:
# name: ${{ env.ANDROID_FILE_NAME }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/statoscope-upload-reference-statistics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Reconfigure git to use HTTPS authentication
uses: GuillaumeFalourd/SSH-to-HTTPS@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm ci
- name: Build
run: npm run build:production; mv ./public/statoscope-build-statistics.json ./statoscope-reference.json
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
name: statoscope-reference
path: ./statoscope-reference.json
14 changes: 7 additions & 7 deletions .github/workflows/statoscope.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Reconfigure git to use HTTPS authentication
uses: GuillaumeFalourd/SSH-to-HTTPS@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm ci
- name: Cache results
uses: actions/cache@v4
uses: actions/cache@v3
id: cache-results
with:
path: |
Expand All @@ -37,10 +37,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Reconfigure git to use HTTPS authentication
Expand All @@ -50,7 +50,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Restore cache
uses: actions/cache@v4
uses: actions/cache@v3
id: restore-cache
with:
path: |
Expand Down

0 comments on commit 7f70a00

Please sign in to comment.