Skip to content

ci: play with perms again #5

ci: play with perms again

ci: play with perms again #5

Workflow file for this run

name: zont_api release
on:
workflow_dispatch:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
contents: write

Check failure on line 15 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / zont_api release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 15, Col: 7): 'contents' is already defined
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install tox
run: pip install tox
- name: Run linters
run: make lint
- name: Run tests
run: make show-env test
- name: Build package
run: make build
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: |
dist/*.tar.gz
dist/*.whl
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
logout: false
- name: Push images
run: make images