Added basic release workflow

This commit is contained in:
Ajay Ramachandran 2020-02-20 12:14:01 -05:00
parent 514a8b62d6
commit b629b7d333
2 changed files with 42 additions and 0 deletions

View file

@ -23,6 +23,9 @@ jobs:
with:
name: ChromeExtension
path: dist
- uses: montudor/action-zip@v0.1.0
with:
args: zip -qq -r ./builds/ChromeExtension.zip ./dist
# Create Firefox artifacts
- name: Create Firefox artifacts
@ -31,6 +34,9 @@ jobs:
with:
name: FirefoxExtension
path: dist
- uses: montudor/action-zip@v0.1.0
with:
args: zip -qq -r ./builds/FirefoxExtension.zip ./dist
# Create Beta artifacts (Builds with the name changed to beta)
- name: Create Chrome Beta artifacts
@ -39,10 +45,17 @@ jobs:
with:
name: ChromeExtensionBeta
path: dist
- uses: montudor/action-zip@v0.1.0
with:
args: zip -qq -r ./builds/ChromeExtensionBeta.zip ./dist
- name: Create Firefox Beta artifacts
run: npm run build:firefox -- --env.stream=beta
- uses: actions/upload-artifact@v1
with:
name: FirefoxExtensionBeta
path: dist
- uses: montudor/action-zip@v0.1.0
with:
args: zip -qq -r ./builds/FirefoxExtensionBeta.zip ./dist

29
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,29 @@
name: Upload Release Build
on: release
jobs:
build:
name: Upload Release
runs-on: ubuntu-latest
steps:
# Build Artifacts
- name: Build Artifacts
- uses: ./.github/workflows/ci
# Upload each release asset
- name: Upload to release
uses: JasonEtco/upload-to-release@master
with:
args: ./builds/ChromeExtension.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload to release
uses: JasonEtco/upload-to-release@master
with:
args: ./builds/FirefoxExtension.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}