mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-17 01:01:03 +02:00
58 lines
1.2 KiB
YAML
58 lines
1.2 KiB
YAML
|
|
name: Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
# branches:
|
|
# - release/v0.12
|
|
|
|
permissions:
|
|
contents: read
|
|
id-token: 'write'
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
name: Build everything
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: release
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install build dependencies
|
|
run: pip3 install jsonnet
|
|
|
|
- name: Get version
|
|
id: version
|
|
run: echo VERSION=sha-$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT
|
|
|
|
- name: Extract metadata for container
|
|
id: meta
|
|
uses: docker/metadata-action@v4
|
|
with:
|
|
images: accounts-svc
|
|
tags: |
|
|
type=ref,event=branch
|
|
type=ref,event=pr
|
|
type=semver,pattern={{version}}
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
type=sha
|
|
|
|
- name: Build packages
|
|
run: make packages
|
|
|
|
# - name: Build container
|
|
# run: make container
|
|
|
|
# - name: Publish release distributions to PyPI
|
|
# uses: pypa/gh-action-pypi-publish@release/v1
|
|
|
|
- name: Create deploy bundle
|
|
run: templates/generate-all deploy.zip v${{ steps.version.outputs.VERSION }}
|
|
|