From a34453d50386938fa7ba24dc15b842c1b3e176da Mon Sep 17 00:00:00 2001 From: Martin Mueller Date: Wed, 27 Jan 2021 07:32:03 +0100 Subject: [PATCH] feat: use releaseworkflow for docker hub release --- .github/workflows/release.yml | 11 --------- .projenrc.js | 46 +++++++++++++++++------------------ 2 files changed, 23 insertions(+), 34 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5df1da0..aefe2fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,18 +40,7 @@ jobs: with: name: dist path: dist - get_version: - needs: build - runs-on: ubuntu-latest - outputs: - matrix: ${{ steps.set-matrix.outputs.matrix }} - steps: - - name: Check out the repo - uses: actions/checkout@v2 - - name: set-matrix - run: echo "::set-output name=matrix::{\"version\":\"0.0.1\"}" publish_docker_hub: - needs: get_version runs-on: ubuntu-latest env: CI: "true" diff --git a/.projenrc.js b/.projenrc.js index fa0a544..00d4259 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -14,30 +14,30 @@ const project = new NodeProject({ // const versionJSON = require('./version.json') project.releaseWorkflow.addJobs({ - get_version: { - needs: 'build', - 'runs-on': 'ubuntu-latest', - outputs: { - matrix: '${{ steps.set-matrix.outputs.matrix }}' - }, - 'steps': [ - { - name: 'Check out the repo', - uses: 'actions/checkout@v2', - }, - { - name: 'set-matrix', - run: [ - // 'JSON=$(cat ./version.json)', - 'echo "::set-output name=matrix::{\\"version\\":\\"0.0.1\\"}"', - // 'echo "::set-output name=matrix::${JSON//\'%\'/\'%25\'}"', - // 'echo "::set-output name=version::${JSON}"', - ].join('\n'), - } - ], - }, + // get_version: { + // needs: 'build', + // 'runs-on': 'ubuntu-latest', + // outputs: { + // matrix: '${{ steps.set-matrix.outputs.matrix }}' + // }, + // 'steps': [ + // { + // name: 'Check out the repo', + // uses: 'actions/checkout@v2', + // }, + // { + // name: 'set-matrix', + // run: [ + // // 'JSON=$(cat ./version.json)', + // 'echo "::set-output name=matrix::{\\"version\\":\\"0.0.1\\"}"', + // // 'echo "::set-output name=matrix::${JSON//\'%\'/\'%25\'}"', + // // 'echo "::set-output name=version::${JSON}"', + // ].join('\n'), + // } + // ], + // }, publish_docker_hub: { - needs: 'get_version', + // needs: 'get_version', // 'name': 'Release to NPM', // 'needs': this.releaseWorkflowJobId, 'runs-on': 'ubuntu-latest',