Skip to content

Commit

Permalink
chore: fixing cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Nov 23, 2023
1 parent e1084ba commit 276f3e2
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,34 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# checkout the repo and supply a PAT for the changelog update commit.
checkout-repo:
name: Checkout repository
with:
fetch-depth: 0
token: ${{secrets.PAT}}
uses: actions/checkout@v3

# determine appropriate version number, update changelog, and create a release commit
semantic-release:
name: Semantic Release
runs-on: ubuntu-latest
needs: checkout-repo
concurrency: release
permissions:
id-token: write
contents: write
uses: python-semantic-release/python-semantic-release@master
steps:
# checkout the repo and supply a PAT for the changelog update commit.
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{secrets.PAT}}

# use semantic-release
- uses: python-semantic-release/python-semantic-release@master

# Always build & lint package.
build-package:
name: Build & verify package
needs: checkout-repo
uses: hynek/build-and-inspect-python-package@v1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: hynek/build-and-inspect-python-package@v1

# Download the build package files
download-package:
Expand Down

0 comments on commit 276f3e2

Please sign in to comment.