Skip to content

Commit

Permalink
Setup github actions for automated release (#1)
Browse files Browse the repository at this point in the history
* test

Signed-off-by: Omkar Phansopkar <[email protected]>

* Try CI release

Signed-off-by: Omkar Phansopkar <[email protected]>

* Updated CI

Signed-off-by: Omkar Phansopkar <[email protected]>

* trial 1

Signed-off-by: Omkar Phansopkar <[email protected]>

* t2

Signed-off-by: Omkar Phansopkar <[email protected]>

* t3

Signed-off-by: Omkar Phansopkar <[email protected]>

* Platform specific tar names

Signed-off-by: Omkar Phansopkar <[email protected]>

* Fix workflow yml

Signed-off-by: Omkar Phansopkar <[email protected]>

* Fix workflow yml again

Signed-off-by: Omkar Phansopkar <[email protected]>

* Fix workflow yml againn

Signed-off-by: Omkar Phansopkar <[email protected]>

* Fix workflow yml againnn

Signed-off-by: Omkar Phansopkar <[email protected]>

* Fix workflow yml againnn

Signed-off-by: Omkar Phansopkar <[email protected]>

* Fix workflow yml againnn

Signed-off-by: Omkar Phansopkar <[email protected]>

* Add new release workflow job

Signed-off-by: Omkar Phansopkar <[email protected]>

* Updated release workflow job

Signed-off-by: Omkar Phansopkar <[email protected]>

* Updated release workflow job t7

Signed-off-by: Omkar Phansopkar <[email protected]>

* Updated release workflow job t8

Signed-off-by: Omkar Phansopkar <[email protected]>

* Updated release workflow job t8.1

Signed-off-by: Omkar Phansopkar <[email protected]>

* Updated release workflow job t8.2

Signed-off-by: Omkar Phansopkar <[email protected]>

* Updated release workflow job t8.3

Signed-off-by: Omkar Phansopkar <[email protected]>

* Updated release workflow job t8.5

Signed-off-by: Omkar Phansopkar <[email protected]>

* Updated release workflow job t8.5

Signed-off-by: Omkar Phansopkar <[email protected]>

* Updated release workflow job t9

Signed-off-by: Omkar Phansopkar <[email protected]>

* Updated release workflow job t9

Signed-off-by: Omkar Phansopkar <[email protected]>

* Updated release workflow job t9.1

Signed-off-by: Omkar Phansopkar <[email protected]>

* Updated release workflow job t9.2

Signed-off-by: Omkar Phansopkar <[email protected]>

* Updated release workflow job t9.3

Signed-off-by: Omkar Phansopkar <[email protected]>

* Added release workflow for linux & windows

Signed-off-by: Omkar Phansopkar <[email protected]>

* Matrix for OS

Signed-off-by: Omkar Phansopkar <[email protected]>

* Release beta 4.0.0

Signed-off-by: Omkar Phansopkar <[email protected]>

* Release test

Signed-off-by: Omkar Phansopkar <[email protected]>

* Release test2

Signed-off-by: Omkar Phansopkar <[email protected]>

* Release test3

Signed-off-by: Omkar Phansopkar <[email protected]>

* Release test4

Signed-off-by: Omkar Phansopkar <[email protected]>

* Release test5

Signed-off-by: Omkar Phansopkar <[email protected]>

* Release test with get tag

Signed-off-by: Omkar Phansopkar <[email protected]>

* Update for push

Signed-off-by: Omkar Phansopkar <[email protected]>

* Beta release

Signed-off-by: Omkar Phansopkar <[email protected]>

* Arm beta

Signed-off-by: Omkar Phansopkar <[email protected]>

* Release arm test2

Signed-off-by: Omkar Phansopkar <[email protected]>

* Release arm test3

Signed-off-by: Omkar Phansopkar <[email protected]>

* Fix invalid os

Signed-off-by: Omkar Phansopkar <[email protected]>

* Finalized Release yml

Signed-off-by: Omkar Phansopkar <[email protected]>

* Removed residue code

Signed-off-by: Omkar Phansopkar <[email protected]>

Signed-off-by: Omkar Phansopkar <[email protected]>
  • Loading branch information
OmkarPh authored Aug 21, 2022
1 parent b197168 commit e9d0950
Show file tree
Hide file tree
Showing 15 changed files with 301 additions and 602 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/RELEASE.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# name of your github action
name: Release CD

# this will help you specify when & which branch to run deployment
on:
push:
tags:
- v*

jobs:
create_release:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
# - name: Exit if tag not is not pointing to a commit in master branch
# if: endsWith(github.ref, 'master') == false
# run: exit -1
- name: Get release tag
id: tag
uses: dawidd6/action-get-tag@v1
with:
strip_v: false
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{steps.tag.outputs.tag}}
name: Release ${{steps.tag.outputs.tag}}
body_path: ./Release.md
draft: false
prerelease: false
generate_release_notes: false

build:
needs: create_release
name: Build Release archives
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v4
with:
python-version: 3.9
- uses: actions/setup-node@master
with:
node-version: 16.13.0
- name: Install dependencies
run: npm install
- name: Build Workbench & create archive for ${{ matrix.os }}
run: npm run publish
- name: Verify Generated archive in dist/
run: ls ./dist
- name: Upload release assets
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
files: dist/*
73 changes: 0 additions & 73 deletions .travis.yml

This file was deleted.

11 changes: 11 additions & 0 deletions Release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Major changes
- Ported to React + Typescript variant !!
- Updated dependencies
- Updated Tableview library
- Maintain history of imports
- Github actions to create release automatically
Exception: macos arm64 is not yet support by Github actions yet, needs manual build & upload

## Bug fixes
- Table column fixes
- Invalid path query fix (Data for files with similar prefix were colliding)
30 changes: 0 additions & 30 deletions appveyor.yml

This file was deleted.

60 changes: 60 additions & 0 deletions electron-builder.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"appId": "com.electron.scancode-workbench",
"productName": "ScanCode Workbench",
"directories": {
"app": ".",
"output": "out",
"buildResources": "build-res"
},
"files": [
"package.json",
"src/**/*",
"app/**/*",
"node_modules",
"./main.tsx"
],
"extraMetadata": {
"main": "./src/main.ts"
},
"mac": {
"target": {
"target": "dmg",
"arch": "universal"
}
},
"dmg": {
"background": null,
"backgroundColor": "#ffffff",
"window": {
"width": "400",
"height": "300"
},
"contents": [
{
"x": 100,
"y": 100
},
{
"x": 300,
"y": 100,
"type": "link",
"path": "/Applications"
}
]
},
"win": {
"target": {
"target": "nsis",
"arch": ["x64", "ia32"]
}
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true
},
"linux": {
"target": "AppImage",
"category": "Utility"
},
"buildVersion": "1"
}
Loading

0 comments on commit e9d0950

Please sign in to comment.