From 25dcf444c2ea04a46c55d81197d030b6368b6461 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Tue, 26 Nov 2024 19:03:48 +0100 Subject: [PATCH] Add platformio and node_modules cache --- .forgejo/workflows/push.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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