Skip to content

feat: More libraries #29

feat: More libraries

feat: More libraries #29

Workflow file for this run

name: Server builds
on:
push:
branches: [main]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get version
run: |
echo "VERSION=${{ github.run_number }}" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Give permissions to Gradle
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew jar
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Ethylene
path: build/libs/Ethylene**.jar
#- name: Create Release
# if: ${{ format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }}
# run: |
# jar_file=$(basename build/libs/Ethylene**.jar)
# file_name_no_ext="${jar_file%.jar}"
# formatted_name=$(echo "$file_name_no_ext" | sed 's/-/ /g')
#
# gh release create "${{ github.run_number }}" build/libs/Ethylene**.jar \
# --repo="$GITHUB_REPOSITORY" \
# --title="${formatted_name}" \
# --generate-notes
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}