ci: add contents:write permission and free disk space
- Add permissions: contents: write for GitHub Release creation - Add disk cleanup step to free space before build - Fixes 403 release error and dpkg-deb tar error
This commit is contained in:
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -10,6 +10,9 @@ on:
|
|||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rust-format:
|
rust-format:
|
||||||
name: Rust Format
|
name: Rust Format
|
||||||
@ -74,6 +77,10 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- name: Free disk space
|
||||||
|
run: |
|
||||||
|
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc
|
||||||
|
df -h
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user