Skip to content

Commit

Permalink
chore(publish): cargo publish wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stvnksslr committed Oct 9, 2024
1 parent 4d64a6a commit 5f24efb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
on:
# Indicates I want to run this workflow on all branches, PR, and tags
push:
branches: [ "**" ]
tags: [ "*" ]
pull_request:
branches: [ "main" ]


permissions:
pull-requests: write
contents: write


env:
# Define the rust version to use
RUST_VERSION: 1.72.1
# Rust build arguments
BUILD_ARGS: "--release --all-features"
# The binary name
BIN_NAME: "uv-migrator"
# Docker token required to pull images from DockerHub
DOCKER_LOGIN: ${{ secrets.DOCKER_LOGIN }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}

Expand Down Expand Up @@ -98,9 +99,8 @@ jobs:
release:
name: Release
needs: [ build ]
# We run the release job only if a tag starts with 'v' letter
if: startsWith( github.ref, 'refs/tags/v' )
runs-on: ubuntu-22.04
if: startsWith( github.ref, 'refs/tags/v' )
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -124,7 +124,15 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Release Please / Publish to Cargo
release-plz:
name: Release-plz
runs-on: ubuntu-latest
needs: [ build ]
if: startsWith( github.ref, 'refs/tags/v' )
concurrency:
group: release-plz-${{ github.ref }}
cancel-in-progress: false
steps:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
Expand Down
2 changes: 2 additions & 0 deletions release-plz.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[workspace]
changelog_update = false

0 comments on commit 5f24efb

Please sign in to comment.