-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from OpenAxon/finalize-build-workflow
chore: finalize build workflow
- Loading branch information
Showing
2 changed files
with
24 additions
and
15 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
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 |
---|---|---|
@@ -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 | ||
... |