Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup github actions for automated release #1

Merged
merged 44 commits into from
Aug 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
728b80a
test
OmkarPh Aug 18, 2022
86c34d2
Try CI release
OmkarPh Aug 20, 2022
a7bfb40
Updated CI
OmkarPh Aug 20, 2022
a8df303
trial 1
OmkarPh Aug 20, 2022
90d76e0
t2
OmkarPh Aug 20, 2022
54b7186
t3
OmkarPh Aug 20, 2022
441215b
Platform specific tar names
OmkarPh Aug 20, 2022
20c04cf
Fix workflow yml
OmkarPh Aug 20, 2022
41162f7
Fix workflow yml again
OmkarPh Aug 20, 2022
fa8c1b4
Fix workflow yml againn
OmkarPh Aug 20, 2022
16de12b
Fix workflow yml againnn
OmkarPh Aug 20, 2022
304f95f
Fix workflow yml againnn
OmkarPh Aug 20, 2022
05a00fe
Fix workflow yml againnn
OmkarPh Aug 20, 2022
1e44d70
Add new release workflow job
OmkarPh Aug 20, 2022
07a4533
Updated release workflow job
OmkarPh Aug 20, 2022
2c3bfb2
Updated release workflow job t7
OmkarPh Aug 20, 2022
5bf26c6
Updated release workflow job t8
OmkarPh Aug 20, 2022
7e4e85b
Updated release workflow job t8.1
OmkarPh Aug 20, 2022
9652565
Updated release workflow job t8.2
OmkarPh Aug 20, 2022
c73b100
Updated release workflow job t8.3
OmkarPh Aug 20, 2022
74e5cfa
Updated release workflow job t8.5
OmkarPh Aug 20, 2022
a390d94
Updated release workflow job t8.5
OmkarPh Aug 20, 2022
c3c35cf
Updated release workflow job t9
OmkarPh Aug 20, 2022
a19e3af
Updated release workflow job t9
OmkarPh Aug 20, 2022
eec2693
Updated release workflow job t9.1
OmkarPh Aug 20, 2022
115a912
Updated release workflow job t9.2
OmkarPh Aug 20, 2022
df06442
Updated release workflow job t9.3
OmkarPh Aug 20, 2022
ae6af88
Added release workflow for linux & windows
OmkarPh Aug 20, 2022
41456e2
Matrix for OS
OmkarPh Aug 21, 2022
cd1b338
Release beta 4.0.0
OmkarPh Aug 21, 2022
0b557e7
Release test
OmkarPh Aug 21, 2022
018f05c
Release test2
OmkarPh Aug 21, 2022
2ebef5f
Release test3
OmkarPh Aug 21, 2022
cd7bdc2
Release test4
OmkarPh Aug 21, 2022
c10548c
Release test5
OmkarPh Aug 21, 2022
3d412f3
Release test with get tag
OmkarPh Aug 21, 2022
a7b26c8
Update for push
OmkarPh Aug 21, 2022
60ce3ed
Beta release
OmkarPh Aug 21, 2022
4ed515a
Arm beta
OmkarPh Aug 21, 2022
9254e7d
Release arm test2
OmkarPh Aug 21, 2022
e791c7e
Release arm test3
OmkarPh Aug 21, 2022
3bf76ce
Fix invalid os
OmkarPh Aug 21, 2022
295a7dd
Finalized Release yml
OmkarPh Aug 21, 2022
62544ea
Removed residue code
OmkarPh Aug 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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