From 54aea6a67bfc4ef4e0782bc62884d77a2279a3ec Mon Sep 17 00:00:00 2001 From: Nicolas Tessore Date: Tue, 31 Jan 2023 11:33:18 +0000 Subject: [PATCH] DEV: use GitHub Actions to build wheels (+ dependabot) (#41) --- .github/dependabot.yml | 6 ++++++ .github/workflows/build.yml | 17 +++++++++++++++++ .github/workflows/publish.yml | 15 +++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/publish.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..5ace4600 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..0298b493 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,17 @@ +name: build +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: pipx run build + - uses: actions/upload-artifact@v3 + with: + path: dist/*.tar.gz diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..d7b956ae --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,15 @@ +name: publish +on: + release: + types: + - published +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: pipx run build + - uses: pypa/gh-action-pypi-publish@v1.6.4 + with: + user: __token__ + password: ${{ secrets.pypi_token }}