Skip to content

Commit

Permalink
Build wheels on release (#94)
Browse files Browse the repository at this point in the history
* Add build CI workflow

* Upload artifacts

* Remove options related to concurrency
  • Loading branch information
SRv6d authored Jul 21, 2024
1 parent c03b1c6 commit 8394dd1
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Build

on:
release:
types: [published]

permissions:
id-token: write
attestations: write
contents: write

env:
COLUMNS: 120

jobs:
build-wheels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4
- name: Build
run: pdm build
- name: Attest Build Provenance
uses: actions/attest-build-provenance@v1
with:
subject-path: dist/anycastd-*
- name: Upload Build Artifacts
run: >-
gh release upload "${GITHUB_REF_NAME}"
dist/anycastd-*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8394dd1

Please sign in to comment.