diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5767480..d193a7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -126,25 +126,19 @@ jobs: file: deploy/Dockerfile tags: s3rius/rustus:latest,s3rius/rustus:${{env.APP_VERSION}} - release_helm: + upload_helm: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Configure Git - run: | - git config user.name "$GITHUB_ACTOR" - git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - - name: Install Helm - uses: azure/setup-helm@v1 - with: - version: v3.7.1 - - name: Run chart-releaser - uses: helm/chart-releaser-action@v1.3.0 + - uses: actions/checkout@v2 + - name: Export version + run: echo "APP_VERSION=$(head -n 5 Cargo.toml | grep version | cut -d '"' -f2)" >> $GITHUB_ENV + - name: Publish Helm charts + uses: stefanprodan/helm-gh-pages@master with: - charts_dir: ./deploy - env: - CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + token: ${{ secrets.GITHUB_TOKEN }} + charts_dir: deploy + target_dir: helm_releases + app_version: ${{env.APP_VERSION}} publish_crate: runs-on: ubuntu-latest diff --git a/Cargo.lock b/Cargo.lock index 6e31f9f..fb455c2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2384,7 +2384,7 @@ dependencies = [ [[package]] name = "rustus" -version = "0.4.8" +version = "0.4.9" dependencies = [ "actix-files", "actix-rt", diff --git a/Cargo.toml b/Cargo.toml index 33db9d7..410b1e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rustus" -version = "0.4.8" +version = "0.4.9" edition = "2021" description = "TUS protocol implementation written in Rust." keywords = [