Skip to content

Commit 8ac030b

Browse files
committed
Add manual release process
1 parent dbc78c8 commit 8ac030b

File tree

2 files changed

+66
-33
lines changed

2 files changed

+66
-33
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -24,36 +24,3 @@ jobs:
2424
path: |
2525
./ValeLS*
2626
!./ValeLS/**/*.ts
27-
28-
Release:
29-
needs: Build
30-
if: startsWith(github.ref, 'refs/tags/')
31-
runs-on: ubuntu-latest
32-
steps:
33-
- name: Download Artifact
34-
uses: actions/download-artifact@v4
35-
with:
36-
name: ValeLS
37-
38-
- name: Archive Release
39-
uses: thedoctor0/[email protected]
40-
with:
41-
type: 'zip'
42-
filename: 'ValeLS.zip'
43-
44-
# Make a release
45-
- name: Create Release
46-
uses: softprops/action-gh-release@v2
47-
id: create_release
48-
with:
49-
token: ${{ secrets.RELEASE_TOKEN }}
50-
files: ValeLS.zip
51-
52-
- name: Release on Extension Store
53-
uses: qt-creator/[email protected]
54-
with:
55-
api: ${{ secrets.EXTENSION_STORE_API_URL }}
56-
token: ${{ secrets.EXTENSION_STORE_API_TOKEN }}
57-
spec: ValeLS/ValeLS.lua
58-
publish: true
59-
download-url: ${{ fromJSON(steps.create_release.outputs.assets)[0].browser_download_url }}

.github/workflows/release.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Build plugin
2+
run-name: ${{ github.actor }} is building the plugin
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
environment:
7+
description: 'Environment to run against'
8+
type: environment
9+
required: true
10+
11+
jobs:
12+
Build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v1
16+
with:
17+
fetch-depth: 1
18+
19+
- uses: ConorMacBride/install-package@v1
20+
with:
21+
apt: qttools5-dev-tools
22+
23+
- name: Build translations
24+
working-directory: ValeLS/ts
25+
run: lrelease *.ts
26+
27+
- name: Create Artifact
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: ValeLS
31+
path: |
32+
./ValeLS*
33+
!./ValeLS/**/*.ts
34+
35+
Release:
36+
needs: Build
37+
if: startsWith(github.ref, 'refs/tags/')
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Download Artifact
41+
uses: actions/download-artifact@v4
42+
with:
43+
name: ValeLS
44+
45+
- name: Archive Release
46+
uses: thedoctor0/[email protected]
47+
with:
48+
type: 'zip'
49+
filename: 'ValeLS.zip'
50+
51+
# Make a release
52+
- name: Create Release
53+
uses: softprops/action-gh-release@v2
54+
id: create_release
55+
with:
56+
token: ${{ secrets.RELEASE_TOKEN }}
57+
files: ValeLS.zip
58+
59+
- name: Release on Extension Store
60+
uses: qt-creator/[email protected]
61+
with:
62+
api: ${{ secrets.EXTENSION_STORE_API_URL }}
63+
token: ${{ secrets.EXTENSION_STORE_API_TOKEN }}
64+
spec: ValeLS/ValeLS.lua
65+
publish: true
66+
download-url: ${{ fromJSON(steps.create_release.outputs.assets)[0].browser_download_url }}

0 commit comments

Comments
 (0)