Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
maykar authored Nov 6, 2020
1 parent 5fd71e1 commit 6215611
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install uglify-js @babel/core @babel/cli @babel/preset-env
- run: npx babel swipe-navigation.js --out-file swipe-navigation.js --presets @babel/preset-env
- run: npx uglify-js swipe-navigation.js -b beautify=false,max_line_len=150 --compress --mangle toplevel --output swipe-navigation.js
- name: Set version number
run: |
sed -i 's|*DEV|${{ github.ref }}|g' swipe-navigation.js
sed -i 's|refs/tags/||' swipe-navigation.js
- name: Install deps
run: npm install uglify-js @babel/core @babel/cli @babel/preset-env
- name: Run Babel
run: npx babel swipe-navigation.js --out-file swipe-navigation.js --presets @babel/preset-env
- name: Run Uglify
run: npx uglify-js swipe-navigation.js -b beautify=false,max_line_len=150 --compress --mangle toplevel --output swipe-navigation.js
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit 6215611

Please sign in to comment.