Skip to content

Commit

Permalink
maybe i had it right
Browse files Browse the repository at this point in the history
Changed the workflow protection settings
  • Loading branch information
wspr committed Mar 12, 2024
1 parent a5d5b95 commit 4a6f1b0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 23 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
name: Publish release

on:
release:
types: [published]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
push:
tags:
- "*"

permissions:
contents: read

jobs:

publish:
name: Publish Github
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Publish release
uses: ghalactic/github-release-from-tag@v5

deploy:

runs-on: ubuntu-latest
Expand All @@ -35,5 +44,5 @@ jobs:
run: |
hatch build
ls -lR dist
- name: Publish package to PyPI
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
17 changes: 0 additions & 17 deletions .github/workflows/tag.yml

This file was deleted.

0 comments on commit 4a6f1b0

Please sign in to comment.