Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
andrawaag committed Jun 5, 2023
2 parents 9e2d487 + 209a538 commit a0af70e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 81 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
name: Publish WikidataIntegrator to PyPi and TestPyPI

on: release

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/wikidataintegrator
permissions:
id-token: write
steps:
- name: Enable debug logs
run: echo "::set-env name=DEBUG::1"
- uses: actions/checkout@main
- name: Set up Python 3.7
uses: actions/setup-python@v1
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.10
- name: Install pypa/build
run: >-
python -m
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
Expand All @@ -12,15 +12,18 @@ on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
Expand All @@ -32,5 +35,5 @@ jobs:
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: andrawaag
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
36 changes: 0 additions & 36 deletions .github/workflows/python-publish2.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/wdi_new_release.yml

This file was deleted.

0 comments on commit a0af70e

Please sign in to comment.