Skip to content

Commit

Permalink
Test release pypi test
Browse files Browse the repository at this point in the history
  • Loading branch information
stijndehaes committed Jan 10, 2024
1 parent cdce01c commit 979e248
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build

on:
push:
branches:
- feature/publish-main-to-pypi-test
- main

jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/
pypi-publish:
needs:
- build
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/dbt-conveyor-snowflake
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit 979e248

Please sign in to comment.