Skip to content

Commit

Permalink
Rebased on Trusted Publisher Management
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Dec 5, 2023
1 parent 9ede3c9 commit 8463955
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ on:
# - cron: "0 3 * * *"

jobs:

# Test (Linux)

test-linux:
if: github.event_name != 'schedule' || github.repository_owner == 'frictionlessdata'
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, '3.10']
python-version: [3.8, 3.9, "3.10"]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -49,7 +48,7 @@ jobs:
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
python-version: "3.10"
- name: Prepare environment
run: pip3 install hatch
- name: Prepare variables
Expand All @@ -69,7 +68,7 @@ jobs:
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
python-version: "3.10"
- name: Prepare environment
run: pip3 install hatch
- name: Prepare variables
Expand All @@ -88,7 +87,7 @@ jobs:
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
python-version: "3.10"
- name: Prepare environment
run: pip3 install hatch
- name: Build docs
Expand All @@ -106,21 +105,22 @@ jobs:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: [test-linux, test-macos, test-windows]
environment: release
permissions:
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
python-version: "3.10"
- name: Install dependencies
run: pip install -U build
- name: Build distribution
run: python -m build
- name: Publish to PYPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_KEY }}
- name: Release to GitHub
uses: softprops/action-gh-release@v1
env:
Expand Down

0 comments on commit 8463955

Please sign in to comment.