-
Notifications
You must be signed in to change notification settings - Fork 66
52 lines (50 loc) · 1.54 KB
/
_release_github.yml
File metadata and controls
52 lines (50 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: 🚀🐙 Publish release to Github
on:
workflow_dispatch:
inputs: &inputs
base:
description: Branch/tag/commit to publish from
type: string
default: master
workflow_call:
inputs: *inputs
permissions:
contents: write # I think only this is really needed
pull-requests: write
deployments: write
packages: write
jobs:
publish-github:
name: publish to Github
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
submodules: recursive
token: '${{ secrets.PULL_TOKEN }}'
- run: |
git config --global user.email "ben.steer@pometry.com"
git config --global user.name "Pometry-Team"
- name: "Set version number to env var using bash script"
run: |
echo CRATE_VERSION=$(make print-version) >> $GITHUB_ENV
echo "Crate version is $CRATE_VERSION"
- name: "Releasing to Github"
uses: softprops/action-gh-release@v1
with:
draft: false
prerelease: false
tag_name: v${{ env.CRATE_VERSION }}
name: v${{ env.CRATE_VERSION }}
body: |
Release v${{ env.CRATE_VERSION }}
- [x] Publish to crates.io
- [x] Publish to PyPi
- [x] Make Tag
- [x] Release to Github
- Auto-generated by [create-pull-request] triggered by release action [1]
[1]: https://github.com/peter-evans/create-pull-request