Skip to content

Commit

Permalink
Merge pull request #2 from OpenAxon/finalize-build-workflow
Browse files Browse the repository at this point in the history
chore: finalize build workflow
  • Loading branch information
locmai authored Feb 8, 2023
2 parents 6b69d22 + f7ada69 commit 6b46367
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
### Checklist
<!-- [Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.] -->
- [ ] README.md was updated
- [ ] Git commits were signed
- [ ] Git commits were signed
- [ ] Version was bumped
36 changes: 22 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,45 @@
---
name: "Build"
name: "Build and release"

on:
push:
branches: ["master"]
workflow_dispatch:
tags:
- "v*.*.*"

jobs:
build:
strategy:
matrix:
os: ["7", "bionic", "focal"]
os: ["7", "focal"]
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- name: "Build for ${{ matrix.os }}"
run: |
export OS_VERSION=${{ matrix.os }}
make package
- name: Upload math result for job 1
- name: Upload package for passing to release job
uses: actions/upload-artifact@v3
with:
name: pkg
path: omnibus/pkg/*
list-packages:
needs: build
name: "pkg"
path: "omnibus/pkg/*"
release:
needs: "build"
runs-on: "ubuntu-latest"
steps:
- name: Download packages from build job
uses: actions/download-artifact@v3
- name: "Download packages from build job"
uses: "actions/download-artifact@v3"
with:
name: pkg
- name: List packages
shell: bash
name: "pkg"
- name: "List packages"
shell: "bash"
run: |
ls
- name: "Release packages"
uses: "softprops/action-gh-release@v1"
with:
generate_release_notes: true
files: |
*.rpm
*.deb
...

0 comments on commit 6b46367

Please sign in to comment.