generated from jmmaranan/gnome-shell-ext-template
-
Notifications
You must be signed in to change notification settings - Fork 49
62 lines (50 loc) · 1.66 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
# This workflow builds the gnome extension for release on extensions.gnome.org
# For more information see:
#@ https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: release
on:
release:
types: [published]
workflow_dispatch:
inputs:
ref:
description: "Override git ref"
type: string
default: ""
required: false
jobs:
pypi:
strategy:
matrix:
node_version: ["latest"]
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Install linux tools
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends gettext make zip curl
- name: Set up Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
- name: Install Node.js project dependencies
run: npm ci --verbose
# - name: Build Node.js project
# run: npm run build --if-present --verbose
# - name: Test Node.js project
# run: npm test --verbose
- name: Test Packaging
run: make dist
- name: Archive release artifacts
uses: actions/upload-artifact@v4
with:
name: forge-gnome-extension
path: [email protected]
# path: temp/
- name: Upload extension to Goe
run: |
curl -i -X POST -H "Content-Type: multipart/form-data" -F "source=@[email protected]" -F "tos_compliant=on" -F "shell_license_compliant=on" https://extensions.gnome.org/upload/