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