Skip to content

Commit

Permalink
Thu Jun 6 18:39:50 EDT 2024 Updating Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Smith committed Jun 6, 2024
1 parent 09f0552 commit 95b5095
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Create Release

on:
push:
branches:
- main

jobs:
create-release:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.10", "3.11" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
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)"
- name: Create Tag
uses: actions/github-script@v3
env:
TAG: ${{ steps.set-tag.outputs.tag_name }}
with:
github-token: ${{ github.token }}
script: |
github.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/${{ steps.set-tag.outputs.tag_name }}",
sha: context.sha
})
2 changes: 0 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ name: Python package
on:
push:
branches: [ "next" ]
pull_request:
branches: [ "main" ]

jobs:
build:
Expand Down

0 comments on commit 95b5095

Please sign in to comment.