Skip to content

Commit

Permalink
Update workflow to use correct action path
Browse files Browse the repository at this point in the history
  • Loading branch information
vadim-su committed Jan 17, 2024
1 parent 59e6aee commit de7f5b0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish package to PyPI

on:
push:
tags:
- v*
workflow_dispatch:

permissions:
contents: read

jobs:
publish:
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

steps:
- name: Run tests
uses: ./.github/workflows/tests

- name: Checkout
uses: actions/checkout@v3

- name: Set up Python
uses: pdm-project/setup-pdm@v3
with:
cache: true

- name: Publish package distributions to PyPI
run: pdm publish
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
branches:
- main
workflow_call:
workflow_dispatch:

permissions:
Expand All @@ -18,11 +19,12 @@ concurrency:
cancel-in-progress: true

jobs:
code_analysis:
code-analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Analyze code
uses: chartboost/ruff-action@v1

Expand Down

0 comments on commit de7f5b0

Please sign in to comment.