Skip to content

Commit

Permalink
Fri Jun 7 07:39:36 EDT 2024 Adding Create Release Action for main
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Smith committed Jun 7, 2024
1 parent ecde88e commit 7986a4d
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,19 @@ jobs:
python-version: [ "3.10", "3.11" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
- name: 'Get Version'
id: version
uses: 'cloudposse/github-action-jq@main'
with:
python-version: ${{ matrix.python-version }}
- name: Create Release Notes File
env:
COMMITTEXT: "${{ github.event.head_commit.message }}"
run: |
php create-release-notes-file.php
- name: Set Tag Output
id: set-tag
run: echo "::set-output name=tag_name::$(sh get-version.sh)"
input: 'properties.json'
# JQ query string
script: '.version'
# Output raw strings, not JSON texts
raw-output: true
- name: Create Tag
uses: actions/github-script@v3
env:
TAG: ${{ steps.set-tag.outputs.tag_name }}
TAG: ${{ steps.version.outputs.output }}
with:
github-token: ${{ github.token }}
script: |
Expand All @@ -38,4 +35,6 @@ jobs:
repo: context.repo.repo,
ref: "refs/tags/${{ steps.set-tag.outputs.tag_name }}",
sha: context.sha
})
})
- name: Build Package
run: python -m build

0 comments on commit 7986a4d

Please sign in to comment.