Skip to content

Release Package

Release Package #36

Workflow file for this run

name: Release Package
on:
workflow_dispatch:
matrix:

Check failure on line 6 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / Release Package

Invalid workflow file

The workflow is not valid. .github/workflows/release.yaml (Line: 6, Col: 1): Unexpected value 'matrix'
jobs:
release:
runs-on: arc-runner-k8s
concurrency: release
permissions:
id-token: write
contents: write
steps:
- name: Force Install GIT latest
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install -y git
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: "patch"
build_command: "python -m pip install build && python -m build"
- name: Publish package to GitHub Release
uses: python-semantic-release/upload-to-gh-release@main
if: ${{ steps.release.outputs.released }} == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.release.outputs.tag }}
docker:
needs: release
runs-on: arc-runner-k8s
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Context for Buildx
id: buildx-context
run: |
docker context create builders
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
version: latest
endpoint: builders
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: unipoll/api:${{ steps.release.outputs.tag }}, unipoll/api:latest