Skip to content

Build

Build #65

Workflow file for this run

---
name: Build
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'
jobs:
build:
strategy:
matrix:
python: ["3.8", "3.9", "3.10"]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Build
run: |
./build.sh
shell: bash
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: artifacts
path: zeroc-ice-*/dist/zeroc*
if-no-files-found: error
release:
if: startsWith(github.ref, 'refs/tags')
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts from build
uses: actions/download-artifact@v2
- name: List artifacts
run: ls -R
- name:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/zeroc-*/dist/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true