From f3e099eb1109131abd078d7a607e349df37089b2 Mon Sep 17 00:00:00 2001 From: Tommy Chen Date: Thu, 27 Feb 2020 16:35:12 +0800 Subject: [PATCH] ci: Update release jb --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c424b0..9d9c7b6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,10 +23,33 @@ jobs: with: name: tsconfig-references path: packages/tsconfig-references/bundles + - run: echo ${{ github.ref }} release: runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/') + needs: build steps: - uses: actions/download-artifact@v1 with: name: tsconfig-references + - uses: montudor/action-zip@v0.1.0 + with: + args: + unzip -qq tsconfig-references -d ./tsconfig-references + - uses: actions/create-release@v1 + id: create_release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + - uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./tsconfig-references/@yarnpkg/plugin-tsconfig-references.js + asset_name: plugin-tsconfig-references.js + asset_content_type: application/javascript