fix: cannot download via CLI #171
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build example actions in /examples | |
| on: | |
| push: | |
| branches: ['main', 'dev'] | |
| paths: | |
| - 'examples/**' | |
| - 'cli/**' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Determine build environment | |
| run: echo "::set-output name=env::${{ github.ref == 'refs/heads/main' && 'prod' || 'dev' }}" | |
| id: set-env | |
| - name: Build the Docker compose | |
| run: sh buildPush.sh ${{ steps.set-env.outputs.env }} | |
| working-directory: examples |