Bump djangorestframework from 3.16.1 to 3.17.0 #1167
This file contains hidden or 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: staging | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup python and uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: 3.14 | |
| - name: build | |
| run: uv build | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: ephios-dev-wheel | |
| path: dist/ephios-*.whl | |
| if-no-files-found: error | |
| retention-days: 1 | |
| deploy: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| env: | |
| ANSIBLE_PIPELINING: True | |
| steps: | |
| - uses: actions/download-artifact@v8 | |
| id: download | |
| with: | |
| name: ephios-dev-wheel | |
| path: wheel | |
| - name: get path to wheel | |
| id: getwheel | |
| run: echo "::set-output name=path::~/$(ls wheel/ephios-*.whl)" | |
| - name: rsync wheel | |
| uses: nick-fields/retry@v3 | |
| with: | |
| timeout_seconds: 10 | |
| max_attempts: 3 | |
| command: | | |
| echo "${{ secrets.STAGING_SSH_PRIVATE_KEY }}" > .staging-key | |
| chmod 0600 .staging-key | |
| rsync -e "ssh -o StrictHostKeyChecking=no -i .staging-key" -a --delete wheel staghios@despina.uberspace.de:~ | |
| rm .staging-key | |
| - name: Checkout ephios repo | |
| uses: actions/checkout@v6 | |
| with: | |
| path: ephios | |
| - name: Checkout ansible repo | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: 'ephios-dev/ephios-ansible' | |
| path: playbook | |
| - name: Run playbook | |
| uses: dawidd6/action-ansible-playbook@v9 | |
| with: | |
| playbook: playbook/uberspace/provision.yml | |
| directory: ./ | |
| key: ${{secrets.STAGING_SSH_PRIVATE_KEY}} | |
| options: | | |
| --inventory ephios/.github/ci/staging-inventory.yml | |
| --extra-vars package_name="${{steps.getwheel.outputs.path}}" | |
| --verbose |