mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
33 lines
970 B
YAML
33 lines
970 B
YAML
name: Publish release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- run: python -m pip install --upgrade platformio==6.1.19
|
|
- run: ./scripts/test.sh compile --platform esp8266
|
|
- run: ./scripts/test.sh examples --platform esp8266
|
|
- run: ./scripts/test.sh compile --platform esp32
|
|
- run: ./scripts/test.sh examples --platform esp32
|
|
- run: ./scripts/check-docs.sh
|
|
- run: ./scripts/prepare-release.sh "$GITHUB_REF_NAME"
|
|
- run: ./scripts/release-notes.sh "$GITHUB_REF_NAME" > "$RUNNER_TEMP/release-notes.md"
|
|
- run: >-
|
|
gh release create "$GITHUB_REF_NAME"
|
|
--title "WiFiManager $GITHUB_REF_NAME"
|
|
--notes-file "$RUNNER_TEMP/release-notes.md"
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|