Skip to content

Commit

Permalink
python-bareos: update github actions script
Browse files Browse the repository at this point in the history
Adapt github action publish script to correspond to publish script for bareos-restapi.
  • Loading branch information
joergsteffens committed Oct 8, 2021
1 parent ee41aee commit ceab808
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
build-and-publish:
name: "Build python-bareos and publish it to https://pypi.org/"
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

steps:
- name: "Checkout source"
Expand All @@ -21,7 +21,7 @@ jobs:
run: git fetch --tag

- name: "Set up Python"
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: 3.7

Expand All @@ -43,7 +43,7 @@ jobs:
path: python-bareos/dist/

- name: "Publish to pypi.org"
uses: pypa/gh-action-pypi-publish@v1.1.0
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
password: ${{ secrets.pypi_password }}
packages_dir: python-bareos/dist/
Expand Up @@ -3,7 +3,7 @@ name: "python-bareos -> https://test.pypi.org/"
#
# build a python-bareos dev package
# for every change in master,
# affecting python-bareos.
# affecting the relevant files.
#

on:
Expand All @@ -12,12 +12,12 @@ on:
- master
paths:
- python-bareos/**
- .github/workflows/publish-to-test-pypi.yml
- .github/workflows/publish_python-bareos_to_test-pypi.yml

jobs:
build-and-publish:
name: "Build python-bareos and publish it to https://test.pypi.org/"
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

steps:
- name: "Checkout source"
Expand All @@ -30,7 +30,7 @@ jobs:
run: git fetch --tag

- name: "Set up Python"
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: 3.7

Expand All @@ -52,7 +52,7 @@ jobs:
path: python-bareos/dist/

- name: "Publish to test.pypi.org"
uses: pypa/gh-action-pypi-publish@v1.1.0
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
repository_url: https://test.pypi.org/legacy/
password: ${{ secrets.test_pypi_password }}
Expand Down

0 comments on commit ceab808

Please sign in to comment.