-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.11 KB
/
build-translations.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
name: Build plugin
run-name: ${{ github.actor }} is building the plugin
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: ConorMacBride/install-package@v1
with:
apt: qttools5-dev-tools
- name: Build translations
working-directory: ValeLS/ts
run: lrelease *.ts
# Make a release
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
id: create_release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.RELEASE_TOKEN }}
files: |
ValeLS/init.lua
ValeLS/valels.lua
ValeLS/ts/*.qm
- name: Release on Extension Store
uses: Maddimax/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
api: ${{ secrets.EXTENSION_STORE_API_URL }}
token: ${{ secrets.EXTENSION_STORE_API_TOKEN }}
spec: ValeLS/valels.lua
download-url: ${{ fromJSON(steps.create_release.outputs.assets)[0].browser_download_url }}