diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml index fbaefa6..549d60e 100644 --- a/.gitea/workflows/lint.yml +++ b/.gitea/workflows/lint.yml @@ -71,23 +71,17 @@ jobs: # Run directly on host (no container) to access local network steps: - name: Checkout - run: | - git clone --depth=1 --branch=${{ github.ref_name }} \ - https://oauth2:${{ github.token }}@git.mymx.me/${{ github.repository }}.git workspace - cd workspace + run: git clone --depth=1 --branch=${{ github.ref_name }} https://oauth2:${{ github.token }}@git.mymx.me/${{ github.repository }}.git workspace - name: Build firmware run: | - cd workspace - . $HOME/esp/esp-idf/export.sh - cd get-started/csi_recv_router - idf.py build + cd workspace && . $HOME/esp/esp-idf/export.sh && cd get-started/csi_recv_router && idf.py build - name: Create release and upload firmware env: GITEA_TOKEN: ${{ github.token }} + working-directory: workspace run: | - cd workspace TAG="${{ github.ref_name }}" REPO="${{ github.repository }}" API_URL="https://git.mymx.me/api/v1" @@ -119,8 +113,8 @@ jobs: "$API_URL/repos/$REPO/releases/$RELEASE_ID/assets?name=csi_recv_router.bin" - name: Deploy via OTA + working-directory: workspace run: | - cd workspace SENSORS="muddy-storm:192.168.129.29 amber-maple:192.168.129.30 hollow-acorn:192.168.129.31" OTA_PORT=8899 EXPECTED_VERSION="${{ github.ref_name }}"