/
minecraftbackup
/
PistonChat
Обзор
Документация
Войти
/
minecraftbackup
/
PistonChat
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/deploy.yml
46 строк
1 KB
renovate[bot]
Update actions/cache action to v4
17 янв 2024, 22:02
Не верифицирован
17 янв 2024, 22:02
06fa004
Код
Авторство
О чём код?
name: Website deploy on: workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up JDK 17 uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 17 - name: Cache local Maven repository uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - name: Build website with Maven run: mvn -B site --file pom.xml - name: Move files run: | rm -rf docs/ mkdir docs mv ./target/site/* ./docs - name: Generate version file run: | mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec > ./docs/VERSION.txt - name: Commit files run: | git add . git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git commit -m "Deploy website" -a - name: Push changes uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} branch: 'gh-pages' force: true