Skip to content

Commit

Permalink
Update publish.yml following release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Jan 12, 2024
1 parent 5ceab05 commit 58e42d9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 112 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,46 @@
name: Publish
name: Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+rc[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+dev[0-9]+"

permissions:
contents: read

jobs:
pre-commit:
uses: ./.github/workflows/step_pre-commit.yml

static-analysis:
needs: [ pre-commit ]
uses: ./.github/workflows/step_static-analysis.yml
permissions:
contents: read
security-events: write

test-pip:
needs: [ pre-commit ]
uses: ./.github/workflows/step_tests-pip.yml
with:
coverage: ${{ github.event_name != 'schedule' }}

coverage:
needs: [ test-pip ]
uses: ./.github/workflows/step_coverage.yml
if: github.event_name != 'schedule'
coverage: false

test-conda:
needs: [ test-pip ]
uses: ./.github/workflows/step_tests-conda.yml
with:
coverage: ${{ github.event_name != 'schedule' }}
coverage: false

test-ui:
needs: [ test-pip ]
uses: ./.github/workflows/step_tests-ui.yml

test-status:
needs: [ pre-commit, test-pip, test-conda, test-ui ]
runs-on: ubuntu-latest
steps:
- uses: re-actors/alls-green@release/v1
with:
allowed-skips: pre-commit, test-pip, test-conda, test-ui
jobs: ${{ toJSON(needs) }}
if: always()

build:
needs: [ test-pip, test-conda, test-ui ]
needs: [ test-status ]
uses: ./.github/workflows/step_build.yml

publish:
Expand All @@ -51,6 +52,7 @@ jobs:
url: https://pypi.org/p/jupytext

permissions:
contents: read
id-token: write

steps:
Expand Down
96 changes: 0 additions & 96 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 58e42d9

Please sign in to comment.