diff --git a/.forgejo/workflows/push.yaml b/.forgejo/workflows/push.yaml index b54425b..07ac8c8 100644 --- a/.forgejo/workflows/push.yaml +++ b/.forgejo/workflows/push.yaml @@ -29,6 +29,8 @@ jobs: ~/.cache/pip ~/.platformio/.cache ~/data/node_modules + .pio + data/node_modules key: ${{ runner.os }}-pio - uses: actions/setup-python@v5 with: @@ -154,7 +156,7 @@ jobs: - name: Copy files run: | mkdir -p release - cp -t release temp/**/*.bin temp/**/*.sha256 + cp -rf -t release temp/**/*.bin temp/**/*.sha256 - name: Create release uses: https://code.forgejo.org/actions/forgejo-release@v2.4.0 with: @@ -165,7 +167,7 @@ jobs: sha: '${{ github.sha }}' release-dir: release token: ${{ secrets.TOKEN }} - override: false + override: ${{ github.ref_type != 'tag' && github.ref_name != 'main' }} verbose: false prerelease: ${{ github.ref_type != 'tag' && github.ref_name != 'main' }} release-notes-assistant: false \ No newline at end of file