2024-08-25 08:02:29 +00:00
|
|
|
name: Release alpha version
|
2023-03-17 20:19:01 +00:00
|
|
|
|
|
|
|
on:
|
2023-08-05 14:41:07 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
# At 00:00 on Saturday
|
|
|
|
# https://crontab.guru/#0_0_*_*_6
|
|
|
|
- cron: "0 0 * * 6"
|
2023-03-17 20:19:01 +00:00
|
|
|
|
2023-08-05 14:41:07 +00:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
|
2023-03-17 20:19:01 +00:00
|
|
|
jobs:
|
2023-08-05 14:41:07 +00:00
|
|
|
publish-alpha:
|
|
|
|
name: Create an alpha release
|
2023-03-17 20:19:01 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-08-12 19:48:13 +00:00
|
|
|
permissions:
|
|
|
|
contents: write
|
2023-03-17 20:19:01 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout the repository
|
2023-10-21 10:19:52 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-08-05 14:41:07 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Calculate the next release
|
2023-12-21 12:30:25 +00:00
|
|
|
run: .github/workflows/calculate-alpha-release.bash
|
2023-08-05 14:41:07 +00:00
|
|
|
|
2024-08-25 08:02:29 +00:00
|
|
|
- name: Install Rust stable
|
|
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
|
|
|
|
- name: Publish
|
|
|
|
run: cargo publish --allow-dirty --token ${{ secrets.CARGO_TOKEN }}
|
2023-08-05 14:41:07 +00:00
|
|
|
|
|
|
|
- name: Generate a changelog
|
2024-09-01 14:23:35 +00:00
|
|
|
uses: orhun/git-cliff-action@v4
|
2023-08-05 14:41:07 +00:00
|
|
|
with:
|
|
|
|
config: cliff.toml
|
|
|
|
args: --unreleased --tag ${{ env.NEXT_TAG }} --strip header
|
|
|
|
env:
|
|
|
|
OUTPUT: BODY.md
|
|
|
|
|
|
|
|
- name: Publish on GitHub
|
|
|
|
uses: ncipollo/release-action@v1
|
|
|
|
with:
|
|
|
|
tag: ${{ env.NEXT_TAG }}
|
|
|
|
prerelease: true
|
|
|
|
bodyFile: BODY.md
|