Skip to content

repo sync #1434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions script/archive-enterprise-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async function main () {
console.log(`Enterprise version to archive: ${version}`)
const pages = await (require('../lib/pages')())
const permalinksPerVersion = Object.keys(pages)
.filter(key => key.includes(`/enterprise/${version}`))
.filter(key => key.includes(`/enterprise-server@${version}`))

const urls = dryRun
? permalinksPerVersion.slice(0, 10).map(href => `${host}${href}`)
Expand Down Expand Up @@ -162,10 +162,12 @@ async function createRedirectPages (permalinks, pages, finalDirectory) {
const redirects = await loadRedirects(pagesPerVersion)

Object.entries(redirects).forEach(([oldPath, newPath]) => {
// replace any liquid variables with the version number
oldPath = oldPath.replace('{{ page.version }}', version)
// remove any liquid variables that sneak in
oldPath = oldPath
.replace('/{{ page.version }}', '')
.replace('/{{ currentVersion }}', '')
// ignore any old paths that are not in this version
if (!oldPath.includes(`/enterprise/${version}`)) return
if (!(oldPath.includes(`/enterprise-server@${version}`) || oldPath.includes(`/enterprise/${version}`))) return

const fullPath = path.join(finalDirectory, oldPath)
const filename = `${fullPath}/index.html`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Criar e testar o Java com o Ant
title: Criar e estar o Java com o Ant
intro: Você pode criar um fluxo de trabalho de integração contínua (CI) no GitHub Actions para criar e testar o seu projeto Java com o Ant.
product: '{% data reusables.gated-features.actions %}'
redirect_from:
Expand Down Expand Up @@ -38,22 +38,22 @@ Você também pode adicionar este fluxo de trabalho manualmente, criando um novo

{% raw %}
```yaml
name: Java CI
nome: Java CI

on: [push]
em: [push]

jobs:
trabalho:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Ant
run: ant -noinput -buildfile build.xml
etapa:
- usa: actions/checkout@v2
- nome: Configure JDK 1.
uso: actionp-java@v1
com:
java-version: 1.
- nome: Construir com Ant
executar: ant -noinput -buildfile build.xml
```
{% endraw %}

Expand All @@ -79,13 +79,13 @@ Se você usa comandos diferentes para criar seu projeto ou se você quer executa

{% raw %}
```yaml
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
etapas:
- usa: actions/checkout@v2
- usa: actions/setup-java@v1
com:
java-version: 1.8
- name: Run the Ant jar target
run: ant -noinput -buildfile build-ci.xml jar
- nome: Executa o alvo do Ant jar
executa: ant -noinput -buildfile build-ci.xml jar
```
{% endraw %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Criar e testar o Java com o Gradle
title: Criar e estar o Java com o Gradle
intro: Você pode criar um fluxo de trabalho de integração contínua (CI) no GitHub Actions para criar e testar o seu projeto Java com o Gradle.
product: '{% data reusables.gated-features.actions %}'
redirect_from:
Expand Down Expand Up @@ -38,22 +38,22 @@ Você também pode adicionar este fluxo de trabalho manualmente, criando um novo

{% raw %}
```yaml
name: Java CI
nome: Java CI

on: [push]
em: [push]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They appear to be translating elements in the YAML

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chiedo maybe the revert is bringing in broken examples

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


jobs:
build:
trabalhos:
criar:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
etapas:
- usa: actions/checkout@v2
- nome: Set up JDK 1.8
usa: actions/setup-java@v1
com:
java-version: 1.8
- name: Build with Gradle
run: ./gradlew build
- nome: Criar com Gradle
executar: ./gradlew build
```
{% endraw %}

Expand All @@ -79,13 +79,13 @@ Se você usa comandos diferentes para criar seu projeto ou se você desejar usar

{% raw %}
```yaml
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
etapas:
- usa: actions/checkout@v2
- ususaes: actions/setup-java@v1
com:
java-version: 1.8
- name: Run the Gradle package task
run: ./gradlew -b ci.gradle package
- Nome: Executa a tarefa do pacote do Gradle
executar: ./gradlew -b ci.gradle package
```
{% endraw %}

Expand All @@ -95,20 +95,20 @@ Você pode armazenar as suas dependências para acelerar as execuções do seu f

{% raw %}
```yaml
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
etapas:
- usa: actions/checkout@v2
- nome: Set up JDK 1.8
usa: actions/setup-java@v1
com:
java-version: 1.8
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
- nome: Cache Gradle packages
usa: actions/cache@v2
com:
caminho: ~/.gradle/caches
Chave: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build with Gradle
run: ./gradlew build
- Nome: Criar com Gradle
executar: ./gradlew build
```
{% endraw %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Criar e testar o Java com o Maven
title: Criar e estar o Java com o Maven
intro: Você pode criar um fluxo de trabalho de integração contínua (CI) no GitHub Actions para criar e testar o seu projeto Java com o Maven.
product: '{% data reusables.gated-features.actions %}'
redirect_from:
Expand Down Expand Up @@ -38,22 +38,22 @@ Você também pode adicionar este fluxo de trabalho manualmente, criando um novo

{% raw %}
```yaml
name: Java CI
nome: Java CI

on: [push]
em: [push]

jobs:
build:
trabalhos:
criar:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
etapas:
- usa: actions/checkout@v2
- nome: Set up JDK 1.8
usa: actions/setup-java@v1
com:
java-version: 1.8
- name: Build with Maven
run: mvn -B package --file pom.xml
- nome: Criado com Maven
executar: mvn -B package --file pom.xml
```
{% endraw %}

Expand All @@ -79,13 +79,13 @@ Se você usa comandos diferentes para criar seu projeto ou se desejar usar um al

{% raw %}
```yaml
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
etapas:
- usa: actions/checkout@v2
- usa: actions/setup-java@v1
com:
java-version: 1.8
- name: Run the Maven verify phase
run: mvn -B verify --file pom-ci.xml
- nome: Executar a fase de verificação do Maven
executar: mvn -B verify --file pom-ci.xml
```
{% endraw %}

Expand All @@ -95,20 +95,20 @@ Você pode armazenar as suas dependências para acelerar as execuções do seu f

{% raw %}
```yaml
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
etapas:
- usa: actions/checkout@v2
- nome: Set up JDK 1.8
usa: actions/setup-java@v1
cpm:
java-version: 1.8
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
- nome: Cache Maven packages
usa: actions/cache@v2
com:
caminho: ~/.m2
chave: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -B package --file pom.xml
- nome: Construir com Maven
executar: mvn -B package --file pom.xml
```
{% endraw %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ steps:
Como alternativa, você pode criar e fazes testes com versões exatas do Node.js.

```yaml
strategy:
matrix:
estratégia:
matriz:
node-version: [8.16.2, 10.17.0]
```

Expand Down
Loading