Skip to content

Commit

Permalink
Merge 2bd8981 into ea56c77
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmoremad committed Jun 3, 2022
2 parents ea56c77 + 2bd8981 commit cef875e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: [ '2.7', '3.6' , '3.7' , '3.8' , '3.9', '3.10']
python: ['3.6' , '3.7' , '3.8' , '3.9', '3.10']
steps:
- uses: actions/checkout@v2
with:
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,19 @@ jobs:
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


release:
needs: [deploy]
runs-on: ubuntu-latest
steps:
- name: Get VERSION
run: |
VER=$(cat VERSION)
echo "VERSION=$VER" >> $GITHUB_ENV
- name: Draft new release
uses: release-drafter/release-drafter@v5
with:
version: ${{ env.VERSION }}
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Create release

on: [pull_request]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get VERSION
run: |
VER=$(cat VERSION)
echo "VERSION=$VER" >> $GITHUB_ENV
- name: Create tag
uses: actions/github-script@v5
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ env.VERSION }}',
sha: context.sha
})
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cef875e

Please sign in to comment.