-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (57 loc) · 1.53 KB
/
publish.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Publish Gnome Focus
on:
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Yarn
run: |
npm install -g yarn@^1.22.0
- name: Install Dependencies
run: |
yarn install
- name: Run build
run: |
yarn build:package
- name: Upload extension
uses: actions/upload-artifact@v4
with:
name: [email protected]
path: [email protected]
release:
name: Release
needs: build
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Download extension
id: download-extension
uses: actions/download-artifact@v4
with:
path: gnome-focus
pattern: [email protected]
merge-multiple: true
- name: List Files
run: ls -R ${{ steps.download-extension.outputs.download-path }}
- uses: softprops/action-gh-release@v2
with:
prerelease: false
files: |
${{ steps.download-extension.outputs.download-path }}/[email protected]