diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3769545..0e67196 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,9 @@ on: jobs: build-docker-and-package: runs-on: ubuntu-latest + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write steps: - uses: actions/checkout@v2 - name: Installing dependencies @@ -22,7 +25,7 @@ jobs: - name: Build package run: make install - name: Publish package - run: python3 -m twine upload dist/* -u "${{ secrets.PYPI_USERNAME }}" -p "${{ secrets.PYPI_PASSWORD }}" + uses: pypa/gh-action-pypi-publish@release/v1 - name: Build image run: make build-docker - name: Publish image diff --git a/Makefile b/Makefile index 7525984..9ff0840 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: all test publish install clean check build-docker publish-docker -VERSION ?= 1.2.0 +VERSION ?= 1.3.2 CACHE ?= --no-cache=1 all: build-docker publish-docker diff --git a/docker/Dockerfile b/docker/Dockerfile index 96d20da..8709b01 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,6 +1,6 @@ FROM python:alpine -ARG VERSION=1.3.1 +ARG VERSION=1.3.2 ARG TARGETPLATFORM LABEL maintainer="Jay MOULIN " diff --git a/youtube_music_uploader/__init__.py b/youtube_music_uploader/__init__.py index cf3542d..485dea8 100644 --- a/youtube_music_uploader/__init__.py +++ b/youtube_music_uploader/__init__.py @@ -3,4 +3,4 @@ """ __all__ = ['uploader_daemon', '__version__'] -__version__ = '1.3.1' +__version__ = '1.3.2'