viv/.github/workflows/release.yml

36 lines
654 B
YAML
Raw Normal View History

2023-08-21 15:48:40 -05:00
name: 🚀 Release
on:
push:
tags:
2023-08-22 22:47:33 -05:00
- 'v*.*'
2023-08-21 15:48:40 -05:00
permissions:
contents: write
jobs:
2023-10-07 16:46:40 -05:00
run-tests:
uses: ./.github/workflows/test.yml
2023-08-21 15:48:40 -05:00
build-n-publish:
2023-10-07 16:46:40 -05:00
needs: run-tests
2023-08-22 23:11:56 -05:00
permissions:
id-token: write
2023-08-21 15:48:40 -05:00
uses: ./.github/workflows/pypi.yml
create-release:
2023-10-07 16:46:40 -05:00
needs: build-n-publish
2023-08-21 15:48:40 -05:00
env:
GH_TOKEN: ${{ github.token }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2024-07-12 11:43:52 -05:00
- name: update latest branch
run: |
git checkout -B latest
git push --force-with-lease -u origin latest
2023-08-21 15:48:40 -05:00
- name: Generate New Release
2023-08-22 23:20:51 -05:00
run: gh release create ${{ github.ref }}