Skip to content

Commit

Permalink
ci: do separate 20.04 and 22.04 artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-adam committed Feb 20, 2023
1 parent 91c3294 commit 1129cff
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ jobs:

- uses: actions/download-artifact@v3

- name: Display structure of downloaded files
- name: Check Files
run: ls -R

23 changes: 21 additions & 2 deletions .github/workflows/prod-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ on:
- master
jobs:
Build-Hobbits:
runs-on: ubuntu-20.04
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]

steps:
- uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -44,11 +48,26 @@ jobs:
run: ninja package -C build
- uses: actions/upload-artifact@v3
with:
name: DEB Packages
name: DEB Packages ${{ matrix.os }}
path: build/hobbits-*deb*

Release-Hobbits:
needs: Build-Hobbits
runs-on: ubuntu-22.04
steps:
- uses: actions/setup-node@v3
with:
node-version: 14
- uses: actions/checkout@v3

- uses: actions/download-artifact@v3

- name: Check Files
run: ls -R

- name: Semantic Release
run: |
npm ci
cp ci/full.releaserc.json .releaserc.json
npx semantic-release
env:
Expand Down
7 changes: 6 additions & 1 deletion ci/full.releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@
{
"assets": [
{
"path": "build/hobbits*deb*"
"path": "DEB Packages ubuntu-20.04/*.deb",
"name": "DEB Package for Ubuntu 20.04"
},
{
"path": "DEB Packages ubuntu-22.04/*.deb",
"name": "DEB Package for Ubuntu 22.04"
}
]
}
Expand Down

0 comments on commit 1129cff

Please sign in to comment.