Skip to content

Commit eb6f0fa

Browse files
[ci] Publish to W3C only on push to main (#1738)
1 parent 89f7ced commit eb6f0fa

File tree

2 files changed

+36
-26
lines changed

2 files changed

+36
-26
lines changed

.github/workflows/ci-spec.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -99,29 +99,3 @@ jobs:
9999
with:
100100
publish_dir: ./_output
101101
github_token: ${{ secrets.GITHUB_TOKEN }}
102-
103-
publish-to-w3c-TR:
104-
runs-on: ubuntu-latest
105-
steps:
106-
- name: Checkout repo
107-
uses: actions/checkout@v2
108-
with:
109-
submodules: "recursive"
110-
- name: Setup Node.js
111-
uses: actions/setup-node@v3
112-
with:
113-
node-version: 16
114-
- name: Setup Bikeshed
115-
run: pip install bikeshed && bikeshed update
116-
- name: Setup TexLive
117-
run: sudo apt-get update -y && sudo apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
118-
- name: Setup Sphinx
119-
run: pip install six && pip install sphinx==5.1.0
120-
- name: Publish all specs to their https://www.w3.org/TR/ URLs
121-
run: cd document && make -e WD-echidna-CI
122-
env:
123-
STATUS: --md-status=WD
124-
W3C_ECHIDNA_TOKEN_CORE: ${{ secrets.W3C_ECHIDNA_TOKEN_CORE }}
125-
W3C_ECHIDNA_TOKEN_JSAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_JSAPI }}
126-
W3C_ECHIDNA_TOKEN_WEBAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_WEBAPI }}
127-
YARN_ENABLE_IMMUTABLE_INSTALLS: false

.github/workflows/w3c-publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish to W3C TR space
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths: [ .github/**, document/** ]
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
jobs:
12+
publish-to-w3c-TR:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v2
17+
with:
18+
submodules: "recursive"
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 16
23+
- name: Setup Bikeshed
24+
run: pip install bikeshed && bikeshed update
25+
- name: Setup TexLive
26+
run: sudo apt-get update -y && sudo apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
27+
- name: Setup Sphinx
28+
run: pip install six && pip install sphinx==5.1.0
29+
- name: Publish all specs to their https://www.w3.org/TR/ URLs
30+
run: cd document && make -e WD-echidna-CI
31+
env:
32+
STATUS: --md-status=WD
33+
W3C_ECHIDNA_TOKEN_CORE: ${{ secrets.W3C_ECHIDNA_TOKEN_CORE }}
34+
W3C_ECHIDNA_TOKEN_JSAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_JSAPI }}
35+
W3C_ECHIDNA_TOKEN_WEBAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_WEBAPI }}
36+
YARN_ENABLE_IMMUTABLE_INSTALLS: false

0 commit comments

Comments
 (0)