Skip to content

Commit

Permalink
Fix GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnittl committed Jan 10, 2023
1 parent a15b0b4 commit dea5a23
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@ name: Upload Python Package

on:
release:
types: [published]
types:
- published

jobs:
build:
name: Build package
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
Expand All @@ -30,7 +31,7 @@ jobs:
run: |
python -m build
- name: Upload dist files
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: dist-files
path: dist/
Expand All @@ -41,7 +42,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download dist files
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: dist-files
path: dist/
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ name: Create GitHub Release

on:
push:
tags: "v*.*.*"
tags:
- "v*.*.*"

jobs:
deploy:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }} # Private Acces Token
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Does not trigger release
with:
token: ${{ secrets.GH_PAT }}

0 comments on commit dea5a23

Please sign in to comment.