Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the job that published the self-contained package #41

Merged
merged 2 commits into from
Jan 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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