Skip to content

Commit

Permalink
feat!: initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
nuckle committed Nov 27, 2024
1 parent 3721d45 commit 7795972
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 15 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = tab
indent_size = 4
46 changes: 31 additions & 15 deletions .github/workflows/github-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,13 @@ jobs:
cache: 'npm'
- name: Install Dependencies
run: npm install

- name: Build ${{ env.APP_NAME }} for Firefox
run: npm run build:firefox

- name: Create .zip for Firefox build
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'firefox.zip'
path: 'dist/'
- name: Build ${{ env.APP_NAME }} for Chrome
run: npm run build:chrome

- name: Create .zip for Chrome build
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'chrome.zip'
path: 'dist/'

changelog:
name: Changelog
Expand Down Expand Up @@ -81,7 +70,7 @@ jobs:
git-branch: ${{ env.PR_BRANCH }}
skip-git-pull: true
output-file: false
version-file: .github/package.yaml
version-file: package.json
create-summary: true

- name: Create Changelog PR
Expand Down Expand Up @@ -112,11 +101,39 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Install Dependencies
run: npm install

- name: Build ${{ env.APP_NAME }} for Firefox
run: npm run build:firefox
- name: Create .zip for Firefox build
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'firefox.zip'
path: 'dist/'

- name: Build ${{ env.APP_NAME }} for Chrome
run: npm run build:chrome
- name: Create .zip for Chrome build
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'chrome.zip'
path: 'dist/'

- name: Upload Release
uses: ncipollo/[email protected]
with:
artifacts: "firefox.zip,chrome.zip"
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_OWNER_TOKEN }}
generateReleaseNotes: true
draft: false
prerelease: false
Expand All @@ -128,4 +145,3 @@ jobs:
${{ needs.changelog.outputs.clean_changelog }}
</details>

0 comments on commit 7795972

Please sign in to comment.