forked from asoronow/belljar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bebd536
commit efd5a20
Showing
1 changed file
with
42 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,29 +13,54 @@ on: | |
- main | ||
|
||
jobs: | ||
version-bump: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Bump version and push tag | ||
uses: phips28/[email protected] | ||
with: | ||
github-token: ${{ env.GH_TOKEN }} | ||
tag-prefix: '' | ||
minor: true # Change this to 'true' for minor, 'false' for patch updates | ||
|
||
build: | ||
runs-on: ${{ matrix.os }} | ||
needs: version-bump | ||
runs-on: windows-latest # Focused on Windows to generate .exe | ||
strategy: | ||
matrix: | ||
os: [windows-latest, macos-latest] | ||
node-version: [18.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Set up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
- name: Build and Package | ||
run: npm run dist --publish=never | ||
|
||
- name: Build and Package | ||
run: npm run dist --publish=never | ||
- name: Upload EXE Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ runner.os }}-exe | ||
path: dist/*.exe | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ runner.os }}-artifacts | ||
path: dist/* | ||
release: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: Windows-latest-exe | ||
path: dist | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: dist/*.exe | ||
token: ${{ secrets.GH_TOKEN }} |