Skip to content

Commit

Permalink
CI: Build only for 3.11 and upload release.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Apr 10, 2024
1 parent 0512950 commit 3ad318b
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
branches:
- main
release:
types: [created]

jobs:
test:
Expand Down Expand Up @@ -46,13 +48,27 @@ jobs:
path: ${{ github.workspace }}/rpipins/dist/

- name: Build Debian Package
if: matrix.python == '3.11'
working-directory: rpipins
run: |
echo "DEB_VERSION=`hatchling version`" >> "$GITHUB_ENV"
make deb-deps
make deb
- name: Upload Debian Package
if: matrix.python == '3.11'
uses: actions/upload-artifact@v4
with:
name: ${{ env.RELEASE_FILE }} (deb)
path: ${{ github.workspace }}/*.deb
name: rpipins_${{ env.DEB_VERSION }}_all.deb
path: ${{ github.workspace }}/rpipins_${{ env.DEB_VERSION }}_all.deb

- name: Upload Debian Package
if: github.event_name == 'release' && matrix.python == '3.11'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_path: ${{ github.workspace }}/rpipins_${{ env.DEB_VERSION }}_all.deb
upload_url: ${{ github.event.release.upload_url }}
asset_name: rpipins_${{ env.DEB_VERSION }}_all.deb
asset_content_type: application/octet-stream

0 comments on commit 3ad318b

Please sign in to comment.