This repository has been archived by the owner on Jun 23, 2024. It is now read-only.
Обновление обходов, инструкций и другие мелкие правки [ci-skip] #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- id: get_version | |
uses: battila7/get-version-action@v2 | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Build with Gradle Wrapper | |
run: ./gradlew build | |
env: | |
VERSION: ${{ steps.get_version.outputs.version }} | |
- uses: edgarrc/action-7z@v1 | |
with: | |
args: 7z u ./Injector/Injector.7z -p2024 -mhe=on -u- -up1q1r2x1y1z1w1!BetterCSC-${{ steps.get_version.outputs.version }}.7z ./build/libs/* README.md | |
- uses: edgarrc/action-7z@v1 | |
with: | |
args: 7z rn BetterCSC-${{ steps.get_version.outputs.version }}.7z -p2024 -mhe=on README.md Инструкция.txt BetterCSC-Plus-${{ steps.get_version.outputs.version }}.jar Xenoceal/mods/BetterCSC-Plus-${{ steps.get_version.outputs.version }}.jar | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Package | |
path: BetterCSC-${{ steps.get_version.outputs.version }}.7z | |
upload: | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- id: get_version | |
uses: battila7/get-version-action@v2 | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: Package | |
- name: Creating release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.get_version.outputs.version }} | |
release_name: Версия ${{ steps.get_version.outputs.version }} | |
body: Пароль от архива 2024 | |
draft: false | |
prerelease: false | |
- name: Uploading release asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: BetterCSC-${{ steps.get_version.outputs.version }}.7z | |
asset_name: BetterCSC-${{ steps.get_version.outputs.version }}.7z | |
asset_content_type: application/x-7z-compressed |