-
-
Notifications
You must be signed in to change notification settings - Fork 3
83 lines (70 loc) · 2.2 KB
/
deploy.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: Deploy
on:
release:
types: [published]
jobs:
vsce:
name: VS Code Marketplace
runs-on: ubuntu-latest
timeout-minutes: 10
environment:
name: VS Code Marketplace
url: https://marketplace.visualstudio.com/items?itemName=johnbillion.vscode-wordpress-hooks
env:
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: clean install dependencies
run: npm ci
- name: deploy
run: npm run deploy-vsce
openvsx:
name: Open VSX
runs-on: ubuntu-latest
timeout-minutes: 10
environment:
name: Open VSX Registry
url: https://open-vsx.org/extension/johnbillion/vscode-wordpress-hooks
env:
OVSX_PAT: ${{ secrets.OVSX_TOKEN }}
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: clean install dependencies
run: npm ci
- name: deploy
run: npm run deploy-openvsx
github:
name: GitHub Milestones
runs-on: ubuntu-latest
permissions:
issues: write
timeout-minutes: 10
steps:
- name: Get next versions
id: semvers
uses: WyriHaximus/[email protected]
with:
version: ${{ github.event.release.tag_name }}
- name: Create next patch milestone
run: gh api "/repos/${{ github.repository }}/milestones" --field "title=${{ steps.semvers.outputs.patch }}" || true
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Create next minor milestone
run: gh api "/repos/${{ github.repository }}/milestones" --field "title=${{ steps.semvers.outputs.minor }}" || true
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Create next major milestone
run: gh api "/repos/${{ github.repository }}/milestones" --field "title=${{ steps.semvers.outputs.major }}" || true
env:
GITHUB_TOKEN: ${{ github.token }}