Skip to content

Commit

Permalink
Fix the job that published the self-contained package
Browse files Browse the repository at this point in the history
  • Loading branch information
jordi committed Jul 23, 2024
1 parent f81225f commit 80bc355
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/publish-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ jobs:
with:
fetch-depth: 0

- name: Check pyproject.toml
run: make check-pyproject

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install poetry
run: python3 -m pip install poetry

- name: Write version
run: ./scripts/insert-version-pyproject.sh ${{github.ref_name}}

Expand All @@ -23,11 +34,10 @@ jobs:
make pkg
mv ./dist/main ./generic-k8s-webhook-linux-${{github.ref_name}}
# FIXME Uncomment this once we enable softprops/action-gh-release@v2
# - name: Publish package
# uses: softprops/action-gh-release@v2
# with:
# files: generic-k8s-webhook-linux-${{github.ref_name}}
- name: Publish package
uses: softprops/action-gh-release@v2
with:
files: generic-k8s-webhook-linux-${{github.ref_name}}

build-and-publish-to-ghcr:
# Explicitly grant the `secrets.GITHUB_TOKEN` permissions.
Expand Down

0 comments on commit 80bc355

Please sign in to comment.