-
Notifications
You must be signed in to change notification settings - Fork 834
110 lines (110 loc) · 2.95 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
on:
release:
types: [published]
workflow_dispatch:
name: Octicons Publish
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: '18.x'
- run: npm install
- run: npm run build
- run: cp -r icons lib/build/svg
- uses: actions/upload-artifact@v4
with:
name: octicons
path: ./lib/build
gem:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@master
- uses: actions/download-artifact@v4
with:
name: octicons
path: ./lib/build
- uses: ./.github/actions/build_ruby
env:
RUBYGEMS_TOKEN: ${{ secrets.RUBYGEMS_TOKEN }}
with:
args: octicons_gem
- run: ls ./lib/octicons_gem/pkg
- uses: actions/upload-artifact@v4
with:
name: octicons_gem
path: ./lib/octicons_gem/pkg
helper:
runs-on: ubuntu-latest
needs: gem
steps:
- uses: actions/checkout@master
- uses: actions/download-artifact@v4
with:
name: octicons
path: ./lib/build
- uses: actions/download-artifact@v4
with:
name: octicons_gem
path: ./lib/octicons_helper/vendor/cache
- uses: ./.github/actions/build_ruby
env:
RUBYGEMS_TOKEN: ${{ secrets.RUBYGEMS_TOKEN }}
with:
args: octicons_helper
jekyll:
runs-on: ubuntu-latest
needs: gem
steps:
- uses: actions/checkout@master
- uses: actions/download-artifact@v4
with:
name: octicons
path: ./lib/build
- uses: actions/download-artifact@v4
with:
name: octicons_gem
path: ./lib/octicons_jekyll/vendor/cache
- uses: ./.github/actions/build_ruby
env:
RUBYGEMS_TOKEN: ${{ secrets.RUBYGEMS_TOKEN }}
with:
args: octicons_jekyll
node:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@master
- uses: actions/download-artifact@v4
with:
name: octicons
path: ./lib/build
- uses: ./.github/actions/build_node
env:
NPM_AUTH_TOKEN_SHARED: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}
with:
args: octicons_node
react:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@master
- uses: actions/download-artifact@v4
with:
name: octicons
path: ./lib/build
- name: Build @primer/octicons-react
uses: ./.github/actions/build_node
env:
NPM_AUTH_TOKEN_SHARED: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}
with:
args: octicons_react
- name: Build @primer/styled-octicons
uses: ./.github/actions/build_node
env:
NPM_AUTH_TOKEN_SHARED: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}
with:
args: octicons_styled