mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-17 04:34:37 +03:00
Actions: bump versions
- actions/setup-python@v4 - Use pypa/gh-action-pypi-publish@v1 this fix a warning: You are using "pypa/gh-action-pypi-publish@master". The "master" branch of this project has been sunset and will not receive any updates, not even security bug fixes. Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
6
.github/workflows/check-combinations.yml
vendored
6
.github/workflows/check-combinations.yml
vendored
@@ -26,10 +26,10 @@ jobs:
|
||||
branchtomerge: "origin/master"
|
||||
branch: "update-combinations"
|
||||
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v2
|
||||
- name: Set up Python 3.9
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.8
|
||||
python-version: '3.9'
|
||||
|
||||
- name: Build and install
|
||||
run: |
|
||||
|
||||
4
.github/workflows/check.yml
vendored
4
.github/workflows/check.yml
vendored
@@ -21,9 +21,9 @@ jobs:
|
||||
fetch-depth: 20
|
||||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
- name: Set up Python 3.9
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.9
|
||||
python-version: '3.9'
|
||||
- name: Install tools
|
||||
run: |
|
||||
pip install -U pip
|
||||
|
||||
8
.github/workflows/publish-to-pypi.yml
vendored
8
.github/workflows/publish-to-pypi.yml
vendored
@@ -21,9 +21,9 @@ jobs:
|
||||
- name: Fetch release tag
|
||||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
- name: Set up Python 3.7🐍
|
||||
uses: actions/setup-python@v1
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.7
|
||||
python-version: '3.9'
|
||||
- name: Install build and twine
|
||||
run: python -m pip install build twine --user
|
||||
- name: Build release assets
|
||||
@@ -32,12 +32,12 @@ jobs:
|
||||
run: python -m twine check dist/*
|
||||
- name: Publish distribution 📦 to Test PyPI when releases branch
|
||||
if: ${{ startsWith(github.event.ref, 'refs/heads/releases') }}
|
||||
uses: pypa/gh-action-pypi-publish@master
|
||||
uses: pypa/gh-action-pypi-publish@v1
|
||||
with:
|
||||
password: ${{ secrets.testpypi_password }}
|
||||
repository_url: https://test.pypi.org/legacy/
|
||||
- name: Publish distribution 📦 to PyPI
|
||||
if: ${{ startsWith(github.event.ref, 'refs/tags') }}
|
||||
uses: pypa/gh-action-pypi-publish@master
|
||||
uses: pypa/gh-action-pypi-publish@v1
|
||||
with:
|
||||
password: ${{ secrets.pypi_password }}
|
||||
|
||||
2
.github/workflows/test-install-qt.yml
vendored
2
.github/workflows/test-install-qt.yml
vendored
@@ -30,7 +30,7 @@ jobs:
|
||||
fetch-depth: 20
|
||||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.py }}
|
||||
- name: Run pytest
|
||||
|
||||
147
.github/workflows/upload-release-artifacts.yml
vendored
147
.github/workflows/upload-release-artifacts.yml
vendored
@@ -1,75 +1,72 @@
|
||||
# This will only run automatically when releases have been created,
|
||||
# and will only upload binaries to previously-created releases.
|
||||
# When run manually, it will overwrite the previous reelease binary
|
||||
|
||||
name: Upload release artifacts
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- created
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-standalone:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [windows-latest]
|
||||
py: [3.9]
|
||||
arch: [x86, x64]
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 20
|
||||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: ${{ matrix.py }}
|
||||
architecture: ${{ matrix.arch }}
|
||||
|
||||
- name: Build standalone binary
|
||||
run: |
|
||||
python -m venv venv
|
||||
source venv/Scripts/activate
|
||||
python -m pip install -U pip wheel setuptools setuptools_scm gravitybee
|
||||
python -m pip install -e .
|
||||
python ci/build_standalone.py ${{ matrix.arch }}
|
||||
shell: bash
|
||||
|
||||
- name: Upload to Release
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: .gravitybee\dist\latest\aqt.exe
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
||||
if: matrix.arch=='x64'
|
||||
|
||||
- name: Upload to Release for all architectures
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: .gravitybee\dist\latest\aqt_${{ matrix.arch }}.exe
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
||||
|
||||
- name: Update continuous build
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
overwrite: true
|
||||
prerelease: true
|
||||
tag: Continuous
|
||||
file: .gravitybee\dist\latest\aqt.exe
|
||||
if: matrix.arch=='x64'
|
||||
|
||||
- name: Update continuous build for all architectures
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
overwrite: true
|
||||
prerelease: true
|
||||
tag: Continuous
|
||||
file: .gravitybee\dist\latest\aqt_${{ matrix.arch }}.exe
|
||||
# This will only run automatically when releases have been created,
|
||||
# and will only upload binaries to previously-created releases.
|
||||
# When run manually, it will overwrite the previous reelease binary
|
||||
|
||||
name: Upload release artifacts
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- created
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-standalone:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [windows-latest]
|
||||
py: [3.9]
|
||||
arch: [x86, x64]
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 20
|
||||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.py }}
|
||||
architecture: ${{ matrix.arch }}
|
||||
- name: Build standalone binary
|
||||
run: |
|
||||
python -m venv venv
|
||||
source venv/Scripts/activate
|
||||
python -m pip install -U pip wheel setuptools setuptools_scm gravitybee
|
||||
python -m pip install -e .
|
||||
python ci/build_standalone.py ${{ matrix.arch }}
|
||||
shell: bash
|
||||
|
||||
- name: Upload to Release
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: .gravitybee\dist\latest\aqt.exe
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
||||
if: matrix.arch=='x64'
|
||||
|
||||
- name: Upload to Release for all architectures
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: .gravitybee\dist\latest\aqt_${{ matrix.arch }}.exe
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
||||
- name: Update continuous build
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
overwrite: true
|
||||
prerelease: true
|
||||
tag: Continuous
|
||||
file: .gravitybee\dist\latest\aqt.exe
|
||||
if: matrix.arch=='x64'
|
||||
- name: Update continuous build for all architectures
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
overwrite: true
|
||||
prerelease: true
|
||||
tag: Continuous
|
||||
file: .gravitybee\dist\latest\aqt_${{ matrix.arch }}.exe
|
||||
|
||||
Reference in New Issue
Block a user