Skip to content

Commit 8b6ab74

Browse files
grandizzyGeorge Niculae
andauthored
ci: gate release publish behind release environment, drop release-build cache (#457)
Co-authored-by: George Niculae <george@gxn3ql7y5j.tail388b2e.ts.net>
1 parent 3c78845 commit 8b6ab74

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,6 @@ jobs:
8989
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
9090
with:
9191
target: ${{ matrix.build.target }}
92-
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
93-
with:
94-
key: ${{ matrix.build.target }}
95-
save-if: false
9692
- name: Build release binary
9793
run: cargo build --locked --release --target ${{ matrix.build.target }} -p ${{ env.PACKAGE }}
9894
- run: strip target/${{ matrix.build.target }}/release/${{ env.PACKAGE }}
@@ -154,6 +150,7 @@ jobs:
154150

155151
publish:
156152
name: Publish ${{ matrix.package }}
153+
environment: release
157154
permissions:
158155
contents: write
159156
needs: [parse-tag, build]

0 commit comments

Comments
 (0)