Added release step for the action #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
release: | |
types: | |
- created | |
push: | |
pull_request: | |
permissions: | |
packages: write | |
jobs: | |
docker: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
- uses: docker/[email protected] | |
- uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ github.token }} | |
- uses: docker/[email protected] | |
id: meta | |
with: | |
images: ghcr.io/${{ github.repository }} | |
tags: | | |
type=sha,format=short,prefix= | |
type=raw,value=latest,enable={{ is_default_branch }} | |
- uses: docker/[email protected] | |
with: | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
ruff: | |
runs-on: ubuntu-22.04 | |
continue-on-error: true | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
python-version: 3.8 | |
- run: pip install -r requirements-dev.txt | |
- run: ruff --output-format=github . | |
wheel: | |
runs-on: ubuntu-22.04 | |
needs: | |
- ruff | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
python-version: 3.8 | |
- run: pip install build | |
- run: python -m build | |
- uses: actions/[email protected] | |
with: | |
name: 5desc.Wheel | |
path: dist/* | |
nuitka: | |
runs-on: windows-2022 | |
needs: | |
- ruff | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
python-version: 3.8 | |
- run: pip install -r requirements-dev.txt | |
- run: python -m nuitka --standalone --onefile --output-filename="fivedesc.exe" --output-dir="build" --assume-yes-for-downloads fivedesc.py | |
- uses: actions/[email protected] | |
with: | |
name: 5desc.Windows | |
path: build/fivedesc.exe | |
release: | |
runs-on: ubuntu-22.04 | |
needs: | |
- wheel | |
- nuitka | |
steps: | |
- uses: actions/[email protected] | |
with: | |
name: 5desc.Wheel | |
path: Python Wheels | |
- uses: actions/[email protected] | |
with: | |
name: 5desc.Windows | |
path: Windows | |
- run: ls -R | |
- run: 7z a ${{ github.event.repository.name }}.zip ${{ github.workspace }} | |
- uses: actions/[email protected] | |
with: | |
name: 5desc | |
path: ./* | |
run: | |
runs-on: ubuntu-22.04 | |
needs: | |
- docker | |
steps: | |
- uses: actions/[email protected] | |
- uses: ./ | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |