Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: GitHub Actions CI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- run: pip install wheel | |
- run: python setup.py install | |
- run: python setup.py test | |
- run: npm install --location=global less | |
- run: lessc ./bulrush/static/css/main.less ./bulrush/static/css/main.css | |
- run: python setup.py sdist bdist_wheel | |
- uses: actions/upload-artifact@v3 | |
with: | |
if-no-files-found: error | |
name: build-outputs | |
path: dist/* | |
deploy-github: | |
runs-on: ubuntu-22.04 | |
if: startsWith(github.ref, 'refs/tags/v') | |
needs: test | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/[email protected] | |
with: | |
name: build-outputs | |
path: dist/ | |
- run: > | |
gh release create | |
'${{ github.ref_name }}' | |
--title '${{ github.ref_name }}' | |
./dist/* | |
env: | |
GH_TOKEN: ${{ github.token }} | |
deploy-pypi: | |
runs-on: ubuntu-22.04 | |
if: startsWith(github.ref, 'refs/tags/v') | |
needs: test | |
environment: | |
name: pypi | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/[email protected] | |
with: | |
name: build-outputs | |
path: dist/ | |
- uses: pypa/gh-action-pypi-publish@release/v1 |