Skip to content

Commit

Permalink
repo sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Octomerger authored Nov 18, 2020
2 parents 473199b + 04f0eb7 commit 982e6cd
Show file tree
Hide file tree
Showing 285 changed files with 2,743 additions and 2,831 deletions.
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]

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

0 comments on commit 982e6cd

Please sign in to comment.