Skip to content

Commit

Permalink
Updating Tag workflow for permissions and using non deprecated action
Browse files Browse the repository at this point in the history
  • Loading branch information
paulstretenowich committed Nov 12, 2024
1 parent 2a79438 commit 8fea14c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/Tag-and-Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
contents: write
packages: write
attestations: write
id-token: write
Expand All @@ -26,12 +26,14 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Git
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
uses: pdm-project/setup-pdm@v4.1
with:
python-version: '3.x'
- name: Get tag
Expand Down Expand Up @@ -67,14 +69,14 @@ jobs:
tags: ${{ steps.get_tag.outputs.version }}
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/[email protected]
with:
tag_name: ${{ steps.get_tag.outputs.version }}
release_name: Release ${{ steps.get_tag.outputs.version }}
name: Release ${{ steps.get_tag.outputs.version }}
body_path: ./release_notes.md
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Delete release_notes file
run: rm release_notes.md

0 comments on commit 8fea14c

Please sign in to comment.