Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
spyoungtech committed Aug 23, 2024
1 parent 1b2fb84 commit 9a956b0
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
46 changes: 46 additions & 0 deletions .github/workflows/realease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: release

on:
push:
tags:
- 'v*.*.*'

jobs:
build:
environment: release
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.10

- name: build
shell: bash
run: |
python -m pip install --upgrade build
python -m pip install -r requirements-dev.txt
python -m build
- name: make schema
shell: bash
run: |
python -m level4.model schema -o schema.json
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1


- name: Release GitHub
uses: softprops/action-gh-release@v1
with:
files: |
dist/*
schema.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
python -m pip install .
python -m pip install tox
- name: Test with coverage/pytest
timeout-minutes: 5
timeout-minutes: 10
env:
PYTHONUNBUFFERED: "1"
run: |
Expand Down

0 comments on commit 9a956b0

Please sign in to comment.