Browse Source

fix release workflows

Thomas Buck 10 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
   build:
12
   build:
13
     runs-on: ubuntu-latest
13
     runs-on: ubuntu-latest
14
 
14
 
15
+    permissions:
16
+      contents: write
17
+
15
     steps:
18
     steps:
16
       - name: Install dependencies
19
       - name: Install dependencies
17
         run: sudo apt-get install -y cxxtest build-essential gcc-arm-none-eabi mtools zip
20
         run: sudo apt-get install -y cxxtest build-essential gcc-arm-none-eabi mtools zip
66
         if: startsWith(github.ref, 'refs/tags/')
69
         if: startsWith(github.ref, 'refs/tags/')
67
         run: |
70
         run: |
68
           cd ${{github.workspace}}/repo/build
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
       - name: Upload release files
74
       - name: Upload release files
72
         if: startsWith(github.ref, 'refs/tags/')
75
         if: startsWith(github.ref, 'refs/tags/')

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

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

Loading…
Cancel
Save