Skip to content

Commit

Permalink
Merge 2882f8b into ea56c77
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmoremad committed Jun 3, 2022
2 parents ea56c77 + 2882f8b commit f17e88a
Show file tree
Hide file tree
Showing 3 changed files with 46 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 }}
29 changes: 29 additions & 0 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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@v6
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ env.VERSION }}',
sha: context.sha
})
- uses: ncipollo/release-action@v1
with:
# artifacts: "release.tar.gz,foo/*.txt"
body: "testing"
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ env.VERSION }}

0 comments on commit f17e88a

Please sign in to comment.