Skip to content

non expiring token added #1183

non expiring token added

non expiring token added #1183

Workflow file for this run

name: Java CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Dependency Test
run: mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q
- name: Build and Test with Maven
run: mvn --batch-mode -Dtest=!**/OpenCV* test -q
- name: Package with Maven
run: mvn package -DskipTests
# - name: Determine Next Version
# id: next_version
# run: |
# current_version=$(cat version.txt)
# major_minor="1.1."
# increment_version=$((current_version + 1))
# next_version="${major_minor}${increment_version}"
# echo "$next_version" > version.txt
# echo "next_version=${next_version}" >> $GITHUB_OUTPUT
- name: Get next version
uses: reecetech/[email protected]
id: version
with:
scheme: semver
increment: patch
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
tag_name: ${{ steps.version.outputs.version }}
release_name: Release ${{ steps.version.outputs.version }}
draft: false
prerelease: false
- name: Upload Release Artifacts
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/myrobotlab.zip
asset_name: myrobotlab.zip
asset_content_type: application/zip