forked from open-vsx/publish-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (56 loc) · 1.62 KB
/
publish-extensions.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
name: Publish extensions to open-vsx.org
on:
schedule:
# Run at 03:03 UTC every day.
- cron: '3 3 * * *'
workflow_dispatch:
inputs:
extensions:
description: "Comma separated list of extensions to publish"
required: false
default: ""
skipPublish:
description: 'Skip publishing to Open VSX, only build extensions'
type: boolean
required: false
default: "false"
forcefullyPublish:
description: 'Force publish to OpenVSX, even if version is alreaxy published to OpenVSX'
type: boolean
required: false
default: "false"
jobs:
publish_extensions:
env:
EXTENSIONS: ${{ github.event.inputs.extensions }}
SKIP_PUBLISH: ${{ github.event.inputs.skipPublish }}
FORCE: ${{ github.event.inputs.forcefullyPublish }}
name: node publish-extensions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- run: npm install
- run: node publish-extensions
env:
OVSX_PAT: ${{ secrets.OVSX_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: node report-extensions
- uses: actions/upload-artifact@v2
if: always()
with:
name: report
path: |
/tmp/stat.json
/tmp/result.log
- name: Slack Notification
if: always()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.GITPOD_SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}