-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 851 Bytes
/
release.yml
File metadata and controls
28 lines (26 loc) · 851 Bytes
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
name: Release Package
on:
workflow_dispatch:
inputs:
version:
description: "Version (eg: v1, v2, v3)"
type: string
required: true
jobs:
build-and-publish:
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
- uses: aboutbits/github-actions-base/git-setup@v2
- name: Update versions in readme.md
run: |
sed -i "s|\(uses:.*@\)v[0-9]\+|\1${{ github.event.inputs.version }}|g" readme.md
- uses: aboutbits/github-actions-base/git-commit-and-push-all@v2
with:
message: '${{ github.event.inputs.version }}'
- uses: aboutbits/github-actions-base/git-create-or-update-tag@v2
with:
tag-name: '${{ github.event.inputs.version }}'