viv/.github/workflows/release.yml

38 lines
695 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
- name: update latest tag
uses: richardsimko/update-tag@v1
with:
tag_name: latest
2023-08-22 23:20:51 -05:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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 }}