diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f1815d77..54222f1a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,14 +14,14 @@ jobs: # experimental: true steps: # Configures the python version - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} - name: Print Versions run: | python --version git --version - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Required Packages run: sudo apt-get install cmake libssl-dev libssh2-1-dev - name: Install Python Dependencies @@ -55,9 +55,9 @@ jobs: python-version: [3.9] fail-fast: false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Pyinstaller @@ -69,7 +69,7 @@ jobs: # Build wheel and source package poetry build - name: Upload Wheel and Source - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: wheel-and-source path: | @@ -85,9 +85,9 @@ jobs: os: ['windows-2022', 'ubuntu-22.04', 'macos-12'] fail-fast: false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} #- name: Patch Windows requirements @@ -112,7 +112,7 @@ jobs: if: ${{ startsWith(matrix.os, 'windows') }} run: cp ./dist/run.exe ./dist/quit-windows.exe - name: Upload Binary Releases 🚀 - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: binary-releases path: | @@ -125,35 +125,35 @@ jobs: needs: build steps: - name: Download build - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: wheel-and-source path: dist - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: | aksw/quitstore ghcr.io/aksw/quitstore - name: Build and push for many architectures id: docker_build_tagged - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: push: ${{ github.event_name != 'pull_request' }} platforms: 'linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le'