mirror of
https://github.com/sigmasternchen/grimoire-ssg
synced 2025-03-15 01:58:54 +00:00
chore: Add release pipeline
This commit is contained in:
parent
5b06ef0ec1
commit
9323d78c37
1 changed files with 32 additions and 0 deletions
32
.github/workflows/release.yml
vendored
Normal file
32
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: [ "*" ]
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: 3.11
|
||||
- name: Set up Poetry
|
||||
run: |
|
||||
python -m pip install poetry
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
poetry install
|
||||
- name: Build
|
||||
run: |
|
||||
poetry build
|
||||
- name: Mint token
|
||||
id: mint
|
||||
uses: tschm/token-mint-action@v1.0.2
|
||||
- name: Publish
|
||||
run: |
|
||||
poetry publish -u __token__ -p '${{ steps.mint.outputs.api-token}}'
|
Loading…
Reference in a new issue