From 469af62aca143ba9c5a3e20e123385e324c25080 Mon Sep 17 00:00:00 2001 From: p-a-s-c-a-l Date: Mon, 6 Apr 2020 15:26:04 +0200 Subject: [PATCH] #1 build project --- .github/workflows/release.yml | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d9fc09..bec2eb2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,16 +21,26 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! + # Install ckanapi + - name: Install ckanapi client + run: sudo pip install ckanapi - # Runs a set of commands using the runners shell - - name: Run a multi-line script + - name: Install Node Dependecies + run: npm install + + # Download JSON Export from CKAN + - name: Download JSON EXport fro CKAN run: | - echo Add other actions to build, - echo test, and deploy your project. node --version + ls -l + npm install + npm run download-groups + npm run download-organizations + # Generate Reports + - name: Download JSON EXport fro CKAN + run: | + npm run process-groups + npm run process-organizations - name: Build project # This would actually build your project, using zip for an example artifact run: | @@ -52,7 +62,10 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + release_name: Data Management Plan v${{ github.ref }} + body: | + [CLARTIY H2020](https://myclimateservices.eu/) Data Management Plan v$GITHUB_REF generated by $GITHUB_ACTOR from [CLARITY CKAN](https://ckan.myclimateservice.eu/) + Build #$GITHUB_RUN_NUMBER triggered by $GITHUB_SHA draft: true prerelease: true - name: Download math result for job 1