Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulh committed Dec 5, 2023
1 parent 87619d1 commit 65ffa0c
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/build-deb-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,38 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@v2

- name: Fetch latest release version
id: fetch-latest-release
uses: actions-ecosystem/action-get-latest-tag@v1
- name: Calaos Action Bump Version
id: calaos_version
uses: calaos/[email protected]
with:
version_fragment: ${{ github.event.inputs.vincrement || 'prerelease' }}

- name: Build package
uses: addnab/docker-run-action@v3
id: build
with:
image: ghcr.io/calaos/debian_deb_build_base
options: -v ${{ github.workspace }}:/work
run: |
git config --global --add safe.directory /work
last_tag=$(python3 /get_last_tag.py /work)
export release=$(pysemver bump ${{ github.event.inputs.vincrement || 'prerelease' }} ${last_tag})
echo Build version: $release
/build-deb.sh $release && echo "::set-output name=release::$release"
run: /build-deb.sh ${{ steps.calaos_version.outputs.version_bumped }}

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: deb
path: pkg/*.deb

- name: Create Tag
uses: negz/create-tag@v1
with:
version: ${{ steps.calaos_version.outputs.version_bumped }}
token: ${{ secrets.ACTION_DISPATCH }}

- name: Create a Release
uses: meeDamian/[email protected]
with:
token: ${{ secrets.ACTION_DISPATCH }}
tag: ${{ steps.build.outputs.release }}
name: ${{ steps.build.outputs.release }}
tag: ${{ steps.calaos_version.outputs.version_bumped }}
name: ${{ steps.calaos_version.outputs.version_bumped }}
prerelease: false
files: pkg/*.deb
gzip: false
Expand Down

0 comments on commit 65ffa0c

Please sign in to comment.