nonebot2/.github/workflows/release.yml

44 lines
1.1 KiB
YAML
Raw Normal View History

2021-12-01 19:17:10 +00:00
name: Release
on:
2021-12-01 19:17:10 +00:00
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
2021-12-01 19:17:10 +00:00
ref: master
token: ${{ secrets.GH_TOKEN }}
- name: Setup Python Environment
uses: ./.github/actions/setup-python
2021-12-02 06:03:06 +00:00
- name: Setup Node Environment
uses: ./.github/actions/setup-node
- name: Build API Doc
uses: ./.github/actions/build-api-doc
2021-12-01 19:17:10 +00:00
- name: Archive Files
run: yarn archive $(poetry version -s)
2021-12-01 19:17:10 +00:00
- run: echo "TAG_NAME=v$(poetry version -s)" >> $GITHUB_ENV
- name: Archive Changelog
uses: docker://nonebot/auto-changelog:master
with:
changelog_file: website/src/pages/changelog.md
archive_title: ${{ env.TAG_NAME }}
- name: Push Tag
2021-12-01 19:17:10 +00:00
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m ":bookmark: Release $(poetry version -s)"
git tag ${{ env.TAG_NAME }}
2022-01-08 09:47:29 +00:00
git push && git push --tags