Skip to content

Commit

Permalink
fix: trying to fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjarten authored Oct 16, 2024
1 parent 330af69 commit 3c54bd0
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: Create New Release

on:
workflow_dispatch: # This allows manual triggering of the workflow
workflow_dispatch: # Allows manual triggering of the workflow
push:
branches:
- main # Automatically trigger on push to main branch

jobs:
release:
Expand All @@ -11,33 +14,31 @@ jobs:
contents: write
issues: write
pull-requests: write

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install python-semantic-release
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Run semantic-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SEMANTIC_RELEASE_LOG_LEVEL: DEBUG
SEMANTIC_RELEASE_LOG_LEVEL: verbose # Set verbose logging for debugging
run: |
set -x # Enable command echoing
semantic-release publish || echo "Release failed with exit code $?"
set +x # Disable command echoing
semantic-release publish

0 comments on commit 3c54bd0

Please sign in to comment.