From 556f77c09e331ea706929f851032c4947453079d Mon Sep 17 00:00:00 2001 From: Liam Horne Date: Thu, 3 Oct 2024 17:27:42 -0400 Subject: [PATCH] fix: fix invalid workflow config --- .github/workflows/deploy.yml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 926d49d..e676185 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,9 +9,6 @@ on: jobs: deploy: runs-on: ubuntu-latest - strategy: - matrix: - target: [ethglobal] # add more here for other accounts; implies CLASPRC_{NAME} exists w/ oauth env: SCRIPT_ID: "1eKtnybTCz-GKohMdtdEKVDBUzFK3suniSAT0UDEKsM_Fm5dR9aRMs3WN" steps: @@ -21,27 +18,28 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '22.4.1' - - name: Install clasp - run: npm install -g @google/clasp + - name: Install dependencies + run: | + npm install -g @google/clasp + npm install - name: Set up .clasp.json file run: | - echo '{"scriptId":"${SCRIPT_ID}","rootDir":"dist"}' > ${{ github.workspace }}/allhands/.clasp.json + echo '{"scriptId":"${{ env.SCRIPT_ID }}","rootDir":"dist"}' > $GITHUB_WORKSPACE/.clasp.json - name: Set up OAuth credentials env: - CLASPRC_CONTENT: ${{ secrets.CLASPRC_${{ matrix.target | upper }} }} + CLASPRC_CONTENT: ${{ secrets.CLASPRC_ETHGLOBAL }} run: | echo "$CLASPRC_CONTENT" | base64 -d > ~/.clasprc.json - name: Build the latest run: npm run build - - name: Deploy ${{ matrix.target }} + - name: Deploy ethglobal run: | - echo "Deploying ${{ matrix.target }}..." - cd ${{ github.workspace }}/allhands - clasp push && echo "Deploying ${{ matrix.target }}... done." - + echo "Deploying ethglobal..." + cd $GITHUB_WORKSPACE + clasp push && echo "Deploying ethglobal... done."