diff --git a/.github/workflows/pr-workflow.yaml b/.github/workflows/pr-workflow.yaml new file mode 100644 index 0000000..a7a03dd --- /dev/null +++ b/.github/workflows/pr-workflow.yaml @@ -0,0 +1,18 @@ +name: Pull Request +on: + pull_request: + types: [synchronize, opened, reopened] + branches: ['main'] + +jobs: + PR: + name: Pull Request + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Run helm lint + shell: bash + run: | + helm lint diff --git a/.github/workflows/upgrade-version.yaml b/.github/workflows/release-workflow.yaml similarity index 71% rename from .github/workflows/upgrade-version.yaml rename to .github/workflows/release-workflow.yaml index e4c46b9..b120864 100644 --- a/.github/workflows/upgrade-version.yaml +++ b/.github/workflows/release-workflow.yaml @@ -1,18 +1,27 @@ -name: Upgrade Version +name: Release on: - pull_request: - types: [closed] - branches: ['main'] - + push: + branches: + - 'releases/**' jobs: - UpgradeVersion: - if: github.event.pull_request.merged == true - name: Upgrade Version + Release: + name: Release Workflow runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 + - name: Run helm lint + shell: bash + run: | + helm lint + + - name: Tag Release Commit + shell: bash + run: | + git tag ${GITHUB_REF##*/} + git push origin ${GITHUB_REF##*/} + - name: Helm Package shell: bash run: | @@ -38,3 +47,4 @@ jobs: git add qdrant-*.tgz index.yaml git commit -m "version upgrade" git push +