Skip to content

Commit

Permalink
ci: Update release jb
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Feb 27, 2020
1 parent 13e1b7f commit f3e099e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f3e099e

Please sign in to comment.