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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
