Browse Source

fix release workflows

Thomas Buck 4 months ago
parent
commit
03e6dc1f7b
2 changed files with 7 additions and 1 deletions
  1. 4
    1
      .github/workflows/cmake.yml
  2. 3
    0
      .github/workflows/scad.yml

+ 4
- 1
.github/workflows/cmake.yml View File

@@ -12,6 +12,9 @@ jobs:
12 12
   build:
13 13
     runs-on: ubuntu-latest
14 14
 
15
+    permissions:
16
+      contents: write
17
+
15 18
     steps:
16 19
       - name: Install dependencies
17 20
         run: sudo apt-get install -y cxxtest build-essential gcc-arm-none-eabi mtools zip
@@ -66,7 +69,7 @@ jobs:
66 69
         if: startsWith(github.ref, 'refs/tags/')
67 70
         run: |
68 71
           cd ${{github.workspace}}/repo/build
69
-          zip -r picowota_gadget.uf2 gadget.elf firmware
72
+          zip -r firmware picowota_gadget.uf2 gadget.elf
70 73
 
71 74
       - name: Upload release files
72 75
         if: startsWith(github.ref, 'refs/tags/')

+ 3
- 0
.github/workflows/scad.yml View File

@@ -7,6 +7,9 @@ jobs:
7 7
   render:
8 8
     runs-on: ubuntu-latest
9 9
 
10
+    permissions:
11
+      contents: write
12
+
10 13
     steps:
11 14
       - name: Checkout repo
12 15
         uses: actions/checkout@v4

Loading…
Cancel
Save