Skip to content

Commit

Permalink
- fix: GH action for release
Browse files Browse the repository at this point in the history
  • Loading branch information
le0m committed Feb 12, 2020
1 parent 087bb08 commit b2a0eff
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 3,423 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Release

on:
push:
branches:
- master
tags:
- 'v*'

jobs:
build:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
Expand All @@ -17,6 +17,20 @@ jobs:
- run: yarn lint
- run: yarn test
- run: yarn build
- run: npx semantic-release
- run: |
zip --junk-paths arjs-studio-backend.zip dist/*.js
- id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./arjs-studio-backend.zip
asset_name: arjs-studio-backend.zip
asset_content_type: application/zip
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"eslint-plugin-mocha-no-only": "^1.1.0",
"esm": "^3.2.25",
"mocha": "^6.2.2",
"semantic-release": "^17.0.2",
"terser-webpack-plugin": "^2.3.4",
"webpack": "^4.38.0",
"webpack-cli": "^3.3.6"
Expand Down
Loading

0 comments on commit b2a0eff

Please sign in to comment.