Skip to content

Commit ec7a061

Browse files
authored
Modify sources upload (#307)
Co-authored-by: maxb-io <[email protected]>
1 parent 13b5198 commit ec7a061

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ on:
2222
required: false
2323
default: "ubuntu-22.04"
2424
type: string
25+
permissions:
26+
contents: read
27+
actions: read
2528
jobs:
2629
build-source-package:
2730
runs-on: ubuntu-22.04
@@ -32,7 +35,11 @@ jobs:
3235
steps:
3336
- uses: actions/checkout@v4
3437
with:
35-
path: sources
38+
path: repo
39+
- name: Copy source code to build dir
40+
run: |
41+
mkdir -p sources
42+
rsync -a --exclude='.git' repo/ sources/
3643
- name: Validate configure.ac version matches GitHub Release (only on release)
3744
if: github.event.release.tag_name != ''
3845
env:

0 commit comments

Comments
 (0)