You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by "z7658329 (via GitHub)" <gi...@apache.org> on 2023/02/08 11:37:07 UTC

[GitHub] [incubator-hugegraph-doc] z7658329 opened a new pull request, #193: feat/separate action

z7658329 opened a new pull request, #193:
URL: https://github.com/apache/incubator-hugegraph-doc/pull/193

   separate validate apache release actions


-- 
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: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph-doc] imbajin merged pull request #193: chore: transfer the validate release script to action

Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin merged PR #193:
URL: https://github.com/apache/incubator-hugegraph-doc/pull/193


-- 
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: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph-doc] imbajin commented on a diff in pull request #193: chore: transfer the validate release script to action

Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on code in PR #193:
URL: https://github.com/apache/incubator-hugegraph-doc/pull/193#discussion_r1100149721


##########
.github/workflows/validate-release.yml:
##########
@@ -0,0 +1,252 @@
+name: "Validate Apache Release"
+
+on:
+  workflow_dispatch:
+    inputs:
+      release_version:
+        required: true
+        default: '1.0.0'
+
+  push:
+    branches:
+      - 'release-*'
+  pull_request:
+    branches:
+      - 'release-*'
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    env:
+      SCRIPT_PATH: hugegraph-dist/scripts/
+      URL_PREFIX: https://dist.apache.org/repos/dist/dev/incubator/hugegraph/
+      USER: 'imbajin'
+      # TODO: parse version from the running branch name & also adapt the input version
+      RELEASE_VERSION: ''
+    steps:
+      - name: Checkout source
+        uses: actions/checkout@v3
+      - name: Install JDK ${{ matrix.java_version }}
+        uses: actions/setup-java@v3
+        with:
+          java-version: ${{ matrix.java_version }}
+          distribution: 'adopt'
+      - name: Cache Maven packages
+        uses: actions/cache@v3
+        with:
+          path: ~/.m2
+          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+          restore-keys: ${{ runner.os }}-m2
+      - name: Get Yarn path
+        id: yarn-cache-dir-path
+        run: echo "::set-output name=dir::$(yarn cache dir)"
+      - name: Cache Yarn packages
+        uses: actions/cache@v3
+        # use id to check `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
+        id: yarn-cache
+        with:
+          path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
+          key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
+          restore-keys: |
+            ${{ runner.os }}-yarn-
+
+      - name: 1. Download SVN Sources
+        run: |
+          rm -rf dist/${{ inputs.release_version }}

Review Comment:
   seems we could del this line?



-- 
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: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org