Skip to content

Commit

Permalink
fixed release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
massimocandela committed Dec 24, 2023
1 parent 3e70d1e commit d037e7c
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
run: |
npm install
npm run compile
npm run build
- name: Upload Artifact
uses: actions/upload-artifact@v3
Expand All @@ -44,25 +43,6 @@ jobs:
path: ~/.npm/_logs/*
retention-days: 14

build-debs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jtdor/build-deb-action@v1
env:
DEB_BUILD_OPTIONS: noautodbgsym
with:
buildpackage-opts: --build=binary --no-sign
extra-build-deps: git
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
files: |
LICENSE
bin/*
debian/artifacts/*.deb
test:
name: Test
runs-on: ubuntu-latest
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
on:
push:
tags:
- 'v*'

jobs:
build-debs:
runs-on: ubuntu-latest
steps:
- name: Set up Javascript/Node
uses: actions/setup-node@v4
with:
node-version: 18.19.0

- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: '0'

- name: Cache multiple paths
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build
run: |
npm install
npm run build
- uses: jtdor/build-deb-action@v1
env:
DEB_BUILD_OPTIONS: noautodbgsym
with:
buildpackage-opts: --build=binary --no-sign
extra-build-deps: git
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
files: |
LICENSE
bin/*
debian/artifacts/*.deb

0 comments on commit d037e7c

Please sign in to comment.