Skip to content

Commit

Permalink
Rename "master" to "main"
Browse files Browse the repository at this point in the history
Signed-off-by: Tormod Haugland <[email protected]>
  • Loading branch information
tOgg1 committed Sep 1, 2024
1 parent 2e76bd3 commit a3e93b9
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions .github/workflows/primary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Test and push

on:
push:
branches: [ develop, master ]
branches: [ develop, main ]
tags: [ v* ]
pull_request:
branches: [ develop, master ]
branches: [ develop, main ]

jobs:
test:
Expand All @@ -30,27 +30,3 @@ jobs:
- name: Test with coverage
run: |
make test-cov
release:
needs: test
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-22.04
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: |
pip install twine
pip install wheel
poetry install
- name: Build package
run: make build
- name: Publish package
run: make release

0 comments on commit a3e93b9

Please sign in to comment.