Skip to content

Поменял сообщение о перезаливе #95

Поменял сообщение о перезаливе

Поменял сообщение о перезаливе #95

Workflow file for this run

name: Java CI with Gradle
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
cache: 'gradle'
distribution: 'temurin'
- name: Configure Git User Details
run: git config --global user.email "[email protected]" && git config --global user.name "Github Actions"
- name: Build
run: ./gradlew build
- name: Upload jar
uses: actions/upload-artifact@v4
with:
name: unlocker.jar
path: build/libs/*-all.jar
- name: Move file
run: mv -f build/libs/*-all.jar unlocker.jar
- name: Delete old tag
uses: dev-drprasad/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: latest
delete_release: true
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "latest"
release_name: "Latest"
body: Updated upstream
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-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: unlocker.jar
asset_name: unlocker.jar
asset_content_type: application/java-archive