tao12345666333 commented on a change in pull request #121:
URL: https://github.com/apache/apisix-helm-chart/pull/121#discussion_r679650868



##########
File path: .github/workflows/release.yaml
##########
@@ -0,0 +1,37 @@
+name: Release Charts
+
+on:
+  push:
+    branches:
+      - main
+
+jobs:
+  release:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
+
+      - name: Configure Git
+        run: |
+          git config user.name "$GITHUB_ACTOR"
+          git config user.email "[email protected]"
+
+      - name: Install Helm
+        uses: ./.github/actions/setup-helm
+        with:
+          version: v3.4.0
+
+      - name: Add Helm repo
+        run: |
+          helm repo add bitnami https://charts.bitnami.com/bitnami
+          helm repo add apisix https://charts.apiseven.com
+
+      - name: Run chart-releaser
+        uses: ./.github/actions/chart-releaser-action
+        with:
+          charts_dir: .
+        env:
+          CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

Review comment:
       > GitHub automatically creates a GITHUB_TOKEN secret to use in your 
workflow. You can use the GITHUB_TOKEN to authenticate in a workflow run.
   
   
https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to