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

Commit

Permalink
update build commands, remove bestzip, switch from travis to github a…
Browse files Browse the repository at this point in the history
…ctions
  • Loading branch information
eejdoowad committed May 31, 2020
1 parent 2de9c69 commit 9cbcb31
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 539 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: Build release
id: build-release
run: |
npm ci
npm run release
- name: Create Release
id: create-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}

- name: Upload chrome-prod.zip
id: upload-chrome-prod
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: ./chrome-prod.zip
asset_name: chrome-prod-${{ github.ref }}.zip
asset_content_type: application/zip

- name: Upload firefox-prod.zip
id: upload-firefox-prod
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: ./firefox-prod.zip
asset_name: firefox-prod-${{ github.ref }}.zip
asset_content_type: application/zip

- name: Upload chrome-debug.zip
id: upload-chrome-debug
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: ./chrome-debug.zip
asset_name: chrome-debug-${{ github.ref }}.zip
asset_content_type: application/zip

- name: Upload firefox-debug.zip
id: upload-firefox-debug
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: ./firefox-debug.zip
asset_name: firefox-debug-${{ github.ref }}.zip
asset_content_type: application/zip
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 9cbcb31

Please sign in to comment.