Build & release wheels #108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |