Skip to content

Commit

Permalink
Merge pull request #287 from test-fullautomation/ntd1hc/task/maintain…
Browse files Browse the repository at this point in the history
…-release-workflow

add step to update package lists when installing dependencies
  • Loading branch information
test-fullautomation authored Jun 20, 2024
2 parents 4c6ec1c + 620ec3a commit b977aea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:
build-n-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
if: github.event_name == 'push'
permissions:
contents: write

steps:
- name: Checkout source
Expand All @@ -23,6 +24,7 @@ jobs:

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y pandoc
sudo apt-get install -y texlive-latex-*
echo "GENDOC_LATEXPATH=$(dirname $(which pdflatex))" >> $GITHUB_ENV
Expand All @@ -36,6 +38,7 @@ jobs:
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
password: ${{ secrets.PYPI_API_TOKEN }} # This token should be created in Settings > Secrets > Actions
# repository_url: https://test.pypi.org/legacy/ # Use this for testing to upload the distribution to test.pypi

Expand Down

0 comments on commit b977aea

Please sign in to comment.