Skip to content

Merge branch 'viur-framework:main' into master #116

Merge branch 'viur-framework:main' into master

Merge branch 'viur-framework:main' into master #116

Workflow file for this run

name: 🏗️Build and 📦publish ☀️release
on: push
jobs:
build:
name: 🏗️ build package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: '3.10'
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- uses: actions/upload-artifact@master
with:
name: buildfiles
path: .
release:
name: ☀️create release
runs-on: ubuntu-latest
needs: [build]
if: "startsWith(github.ref, 'refs/tags/v')"
steps:
- uses: actions/download-artifact@master
with:
name: buildfiles
path: .
- name: Get version from tag
id: tag_name
run: |
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
- name: create release
uses: softprops/action-gh-release@v1
with:
files: dist/*
body: ${{ steps.changelog_reader.outputs.changes }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}