Skip to content

Commit

Permalink
Feature/parallel ci 2 (#179)
Browse files Browse the repository at this point in the history
* Revert "Revert "feat: parallel ci (#178)""

This reverts commit 167340f.

* try release creation

* Revert "try release creation"

This reverts commit 34d4c37.
  • Loading branch information
ilya-zlobintsev authored May 14, 2023
1 parent 2d78b23 commit 267187f
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/build-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ name: Build packages

on:
push:
branches: ['v2', 'master']
branches: ['master']
pull_request:

jobs:
build-packages:
strategy:
matrix:
target-os: [debian-12, ubuntu-2204, fedora-37, fedora-38]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -17,7 +21,7 @@ jobs:
sudo apt -y install /tmp/pkger.deb
- name: Build packages
run: pkger -c .pkger.yml build lact
run: pkger -c .pkger.yml build lact -i ${{ matrix.target-os }}

- name: Copy release files
run: |
Expand All @@ -40,13 +44,33 @@ jobs:
done
popd
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.target-os }}
path: release-artifacts/*

create-release:
needs: build-packages
runs-on: ubuntu-latest
if: (github.event_name == 'push' && github.ref == 'refs/heads/master')

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: downloaded-artifacts/

- name: Create release
uses: ncipollo/[email protected]
with:
removeArtifacts: true
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: "release-artifacts/*"
artifacts: "downloaded-artifacts/*/*"
body: ${{ github.event.head_commit.message }}
prerelease: true
name: Test release
Expand Down

0 comments on commit 267187f

Please sign in to comment.