diff --git a/.github/workflows/delivery.yml b/.github/workflows/delivery.yml index ef24ba0..b732050 100644 --- a/.github/workflows/delivery.yml +++ b/.github/workflows/delivery.yml @@ -21,7 +21,7 @@ jobs: digest: ${{ steps.build.outputs.digest }} steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Select build profile id: config @@ -33,10 +33,10 @@ jobs: fi - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 - name: Login to GitHub Container Registry - uses: docker/login-action@v3 + uses: docker/login-action@v4 with: registry: ghcr.io username: ${{ github.actor }} @@ -44,7 +44,7 @@ jobs: - name: Build and push (linux/amd64) id: build - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v7 with: context: . platforms: linux/amd64 @@ -77,7 +77,7 @@ jobs: digest: ${{ steps.build.outputs.digest }} steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Select build profile id: config @@ -89,10 +89,10 @@ jobs: fi - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 - name: Login to GitHub Container Registry - uses: docker/login-action@v3 + uses: docker/login-action@v4 with: registry: ghcr.io username: ${{ github.actor }} @@ -100,7 +100,7 @@ jobs: - name: Build and push (linux/arm64) id: build - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v7 with: context: . platforms: linux/arm64 @@ -118,7 +118,7 @@ jobs: # No checkout needed: docker/metadata-action reads from the GitHub Actions context. - name: Docker meta id: meta - uses: docker/metadata-action@v5 + uses: docker/metadata-action@v6 with: images: ghcr.io/${{ github.repository }} tags: | @@ -129,10 +129,10 @@ jobs: type=ref,event=branch,enable=${{ github.event_name == 'workflow_dispatch' }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 - name: Login to GitHub Container Registry - uses: docker/login-action@v3 + uses: docker/login-action@v4 with: registry: ghcr.io username: ${{ github.actor }} diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml new file mode 100644 index 0000000..ef35d98 --- /dev/null +++ b/.github/workflows/release-plz.yml @@ -0,0 +1,32 @@ +name: Release-plz + +permissions: + pull-requests: write + contents: write + +on: + push: + branches: + - main + +jobs: + release-plz: + name: Release-plz + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Run release-plz + uses: release-plz/action@v0.5 + with: + command: release-plz + manifest_path: cryptify/Cargo.toml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/release-plz.toml b/release-plz.toml new file mode 100644 index 0000000..66de95d --- /dev/null +++ b/release-plz.toml @@ -0,0 +1,10 @@ +[workspace] +changelog_update = true +git_release_enable = true +git_tag_enable = true +publish = false + +[[package]] +name = "cryptify" +git_tag_name = "v{{ version }}" +git_release_name = "v{{ version }}"