Skip to content

Build & release wheels #116

Build & release wheels

Build & release wheels #116

Workflow file for this run

name: Build & release wheels
on:
push:
branches:
- main
schedule:
- cron: '53 23 * * *' # Daily at 23:53 UTC
jobs:
build:
name: Build & release wheels
runs-on: ubuntu-latest
steps:
- name: Upgrade pip
run: pip install --upgrade pip
- name: Checkout
uses: actions/checkout@v4
- name: Set up environment
run: |
pipx install poetry
pipx install tox
- name: Install CLI
run: pipx install ./cli/
- name: Build wheels from source
run: build charms.json
- name: Create GitHub release
run: |
name="build-$(date +%s)-v1"
gh release create "$name" --title "$name" ~/charmcraftcache-hub-ci/release/*
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write # Needed to create release