Skip to content

chore(release): 1.12.1-beta.12 #134

chore(release): 1.12.1-beta.12

chore(release): 1.12.1-beta.12 #134

name: offline-installation
on:
push:
tags:
- "v*"
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
strategy:
matrix:
python-version:
- 3.9
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install ruamel.yaml
run: |
pip3 install ruamel.yaml
- name: Download images and upload them
run: |
PYTHON_SCRIPT=$(pwd)/${{ env.GET_YAML_FIELD_SCRIPT }}
./${{ env.CREATE_PACKAGES_SCRIPT }} "$PYTHON_SCRIPT"
VERSION=$(echo $GITHUB_REF | cut -d / -f 3)
gh release upload --clobber $VERSION /tmp/package/packages/*
env:
CREATE_PACKAGES_SCRIPT: create_packages.sh
GET_YAML_FIELD_SCRIPT: get_yaml_fields.py
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACT_NAME }}
path: /tmp/package/packages
env:
ARTIFACT_NAME: offline-installation-packages