-
Notifications
You must be signed in to change notification settings - Fork 20
36 lines (29 loc) · 991 Bytes
/
release.yaml
File metadata and controls
36 lines (29 loc) · 991 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
29
30
31
32
33
34
35
36
name: Release
on:
push:
tags: [ v\d+\.\d+\.\d+ ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
with:
strip_v: true
- name: Change version
run: sed -i -e "s/0\.1\.0/${{ steps.tag.outputs.tag }}/" src/info.json
- name: Package plugin
run: mkdir release && zip -j -r release/rapidapi-deepl-translator-${{ steps.tag.outputs.tag }}.bobplugin ./src/*
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: release/rapidapi-deepl-translator-${{ steps.tag.outputs.tag }}.bobplugin
asset_name: rapidapi-deepl-translator-${{ steps.tag.outputs.tag }}.bobplugin
tag: ${{ github.ref }}
overwrite: true
body: "Release Bob plugin!"