Skip to content

Commit

Permalink
new github action: build and publish a release for new v* version tags
Browse files Browse the repository at this point in the history
  • Loading branch information
asnelling committed Jan 22, 2022
1 parent 100edb8 commit 7acba58
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Release

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: Build package
run: python -m build
- name: Release
uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
# repo_token: "${{ secrets.RELEASE_TOKEN }}"
prerelease: false
files: |
dist/*
LICENSE

0 comments on commit 7acba58

Please sign in to comment.