diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 6143df00..85a33c03 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,24 +1,25 @@ -on: - release: - types: [published] +name: Release-plz + +permissions: + pull-requests: write + contents: write -name: Publish +on: + push: { branches: [master] } jobs: - release: - name: Release - runs-on: ubuntu-latest + release-plz: + name: Release-plz + runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - uses: actions-rs/cargo@v1 - with: - command: login - args: -- ${{ secrets.CARGO_REGISTRY_TOKEN }} - - uses: actions-rs/cargo@v1 + - name: Checkout repository + uses: actions/checkout@v4 with: - command: publish + fetch-depth: 0 + - name: Install Rust (rustup) + run: rustup update nightly --no-self-update && rustup default nightly + - name: Run release-plz + uses: MarcoIeni/release-plz-action@v0.5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/rouille-multipart/Cargo.toml b/rouille-multipart/Cargo.toml index 7511a801..767a61e6 100644 --- a/rouille-multipart/Cargo.toml +++ b/rouille-multipart/Cargo.toml @@ -10,6 +10,7 @@ license = "MIT OR Apache-2.0" readme = "README.md" autobins = false edition = "2021" +publish = false # Don't publish this until we do the necessary cleanup [dependencies] lazy_static = { version = "1.2.0", optional = true }