Skip to content

Commit 3e31cf2

Browse files
authored
Merge pull request #60 from themr0c/fix-release-yaml
2 parents 780d01b + 13408d0 commit 3e31cf2

18 files changed

+68
-67
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,19 @@ assignees: ''
1010
**Describe the bug**
1111
A clear and concise description of what the bug is.
1212

13+
Examples:
14+
15+
* This word or expression triggers an illegitimate vale alert.
16+
* This word or expression triggers an ambiguous vale alert.
17+
1318
**To Reproduce**
1419
Steps to reproduce the behavior:
15-
1. Go to '...'
16-
2. Click on '...'
17-
3. Scroll down to '...'
18-
4. See the error
20+
21+
1. Add this word or expression:
22+
2. Vale reports an illegitimate alert: error, warning, suggestion.
1923

2024
**Expected behavior**
2125
A clear and concise description of what you expected to happen.
2226

23-
**Screenshots**
24-
If applicable, add screenshots to help explain your problem.
25-
26-
**Desktop (complete the following information):**
27-
- Operating system: [for example iOS]
28-
- Browser [for example chrome, safari]
29-
- Version [for example 22]
30-
31-
**Smartphone (complete the following information):**
32-
- Device: [for example iPhone6]
33-
- Operating system: [for example iOS8.1]
34-
- Browser [for example stock browser, safari]
35-
- Version [for example 22]
36-
3727
**Additional context**
38-
Add any other context about the problem here.
28+
Add any other context here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ assignees: ''
88
---
99

1010
**Is your feature request related to a problem? Describe.**
11-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
A clear and concise description of what the problem is.
1212

13-
**Describe the solution you'd like**
13+
**Describe the solution you'd propose**
1414
A clear and concise description of what you want to happen.
1515

1616
**Describe alternatives you've considered**
1717
A clear and concise description of any alternative solutions or features you've considered.
1818

1919
**Additional context**
20-
Add any other context or screenshots about the feature request here.
20+
Add any other context or screenshots here.

.github/workflows/try-in-web-ide.yaml renamed to .github/workflows/add-web-ide-link.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@
77
#
88
# SPDX-License-Identifier: EPL-2.0
99
#
10-
# Add Web IDE link on PRs
11-
name: web-ide
12-
10+
# Add Web IDE link on pull requests
11+
name: Add Web IDE link
1312
on:
1413
pull_request_target:
15-
types: [opened, synchronize]
16-
14+
types:
15+
- opened
16+
- synchronize
1717
jobs:
1818
add-link:
19+
name: Add Web IDE link
1920
runs-on: ubuntu-20.04
2021
steps:
2122
- name: Web IDE Pull Request Check

.github/workflows/build-and-publish-to-github-pages.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
name: Publish to GitHub Pages
1515
on:
1616
push:
17-
branches: [main]
17+
branches:
18+
- main
1819
jobs:
19-
build:
20+
publish:
21+
name: Publish to GitHub Pages
2022
runs-on: ubuntu-latest
2123
steps:
2224
- name: Checkout repository

.github/workflows/build-and-validate-on-pr.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@
99
#
1010

1111
# Name is reused in `publish-netlify.yml`
12-
name: "Build and validate pull request"
13-
12+
name: Build and validate pull request
1413
on:
1514
- pull_request
16-
1715
jobs:
1816
build:
19-
name: "Build and validate pull request"
17+
name: Build and validate pull request
2018
runs-on: ubuntu-20.04
2119
container: "quay.io/eclipse/che-docs:latest"
2220
steps:
@@ -28,38 +26,32 @@ jobs:
2826
- name: Build using antora # and fail on warning
2927
id: antora-build
3028
run: CI=true antora generate antora-playbook-for-development.yml --stacktrace 2>&1 | (tee | grep WARNING && exit 42 || exit 0)
31-
3229
- name: Upload artifact doc-content
3330
uses: actions/upload-artifact@v2
3431
with:
3532
name: doc-content
3633
path: build/site
37-
3834
- name: Store PR info for publish-netlify
3935
run: |
4036
echo "${{ github.event.number }}" > PR_NUMBER
4137
echo "${{ github.event.pull_request.head.sha }}" > PR_SHA
42-
4338
- name: Upload artifact pull-request-number for publish-netlify
4439
uses: actions/upload-artifact@v2
4540
with:
4641
name: pull-request-number
4742
path: PR_NUMBER
48-
4943
- name: Upload artifact pull-request-sha for publish-netlify
5044
uses: actions/upload-artifact@v2
5145
with:
5246
name: pull-request-sha
5347
path: PR_SHA
54-
5548
- name: Cache htmltest status code of checked external URLs # See: https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows
5649
uses: actions/cache@v2
5750
env:
5851
cache-name: cache-htmltest
5952
with:
6053
key: refcache.json
6154
path: .cache/htmltest
62-
6355
- name: Validate links using htmltest
6456
id: validate-links
6557
run: htmltest

.github/workflows/build-and-validate-on-push.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,34 @@
1111
# GitHub Actions configuration file for htmltest
1212
# See: https://github.com/wjdp/htmltest
1313

14-
name: Build and validate
14+
name: Build and validate on push
1515
on:
1616
- push
1717
jobs:
1818
build:
19-
name: Build and validate
19+
name: Build and validate on push
2020
runs-on: ubuntu-20.04
2121
container: "quay.io/eclipse/che-docs:latest"
2222
steps:
2323
- name: Checkout code
2424
uses: actions/checkout@v2
2525
with:
2626
fetch-depth: 0
27-
2827
- name: Build using antora
2928
id: antora-build
3029
run: CI=true antora generate antora-playbook-for-development.yml --stacktrace
31-
3230
- name: Upload artifact
3331
uses: actions/upload-artifact@v2
3432
with:
3533
name: doc-content
3634
path: build/site
37-
3835
- name: Cache htmltest status code of checked external URLs # See: https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows
3936
uses: actions/cache@v2
4037
env:
4138
cache-name: cache-htmltest
4239
with:
4340
key: refcache.json
4441
path: .cache/htmltest
45-
4642
- name: Validate links using htmltest
4743
id: validate-links
4844
run: htmltest

.github/workflows/publish-netlify.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@
1010

1111
# NOTE: Because this worklow is using secrets, it cannot run directly on a pull-request workflow, which is running in the context of the forked repository.
1212

13-
name: Publish doc-content using netlify
14-
13+
name: Publish pull request doc-content using netlify
1514
on:
1615
workflow_run:
1716
workflows:
1817
- "Build and validate pull request"
1918
types:
2019
- completed
21-
2220
jobs:
2321
publish:
2422
name: Publish doc-content using netlify

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
1+
---
2+
#
3+
# Copyright (c) 2021 Red Hat, Inc.
4+
# This program and the accompanying materials are made
5+
# available under the terms of the Eclipse Public License 2.0
6+
# which is available at https://www.eclipse.org/legal/epl-2.0/
7+
#
8+
# SPDX-License-Identifier: EPL-2.0
9+
#
110
name: Release
211
on:
312
push:
413
branches:
514
- main
615
jobs:
7-
prose:
16+
release:
17+
name: Release
818
runs-on: ubuntu-latest
919
steps:
1020
- name: Checkout

.github/workflows/vale.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
1+
---
2+
#
3+
# Copyright (c) 2021 Red Hat, Inc.
4+
# This program and the accompanying materials are made
5+
# available under the terms of the Eclipse Public License 2.0
6+
# which is available at https://www.eclipse.org/legal/epl-2.0/
7+
#
8+
# SPDX-License-Identifier: EPL-2.0
9+
#
110
name: Linting with Vale
211
on:
312
- pull_request
413
- push
514
jobs:
6-
prose:
15+
vale:
16+
name: Linting with Vale
717
runs-on: ubuntu-latest
818
steps:
919
- name: Checkout
1020
uses: actions/checkout@master
11-
1221
- name: Vale Linter
1322
uses: errata-ai/[email protected]
1423
with:

.vale.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ SkippedScopes = script, style, pre, figure, code, tt, blockquote, listingblock,
3232
properties = md
3333

3434
# Match AsciiDoc files. See: https://docs.errata.ai/vale/scoping
35-
[*.adoc]
35+
# Ignore files in a directory starting by `.`
36+
# to avoid raising errors for `.vale/fixtures/*/testinvalid.adoc` files
37+
[[!.]*.adoc]
3638
# Styles to load, located in the `StylesPath` folder:
3739
BasedOnStyles = RedHat
3840

0 commit comments

Comments
 (0)