-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (35 loc) · 952 Bytes
/
deployments.yml
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
name: Version Tag Deployment
on:
workflow_dispatch:
inputs:
extension:
type: choice
options:
- "firestore-chatgpt-bot"
required: true
description: "Extension Name"
version:
type: string
required: true
description: "Extension Version"
commit:
type: string
required: false
description: "Commit ID to be deployed (Defaults to HEAD)"
env:
TARGET: ${{ github.event.inputs.extension }}
VERSION_NUMBER: ${{ github.event.inputs.version }}
TAG_NAME: ${{ github.event.inputs.extension }}/v${{ github.event.inputs.version }}
jobs:
push-tag:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.commit }}
- name: Push tag
run: |
git tag ${{ env.TAG_NAME }}
git push origin ${{ env.TAG_NAME }}