This repository has been archived by the owner on Jul 21, 2024. It is now read-only.
🔖 SDK 2.0.0 APP 4.0.0 #52
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
# This is a basic workflow to help you get started with Actions | |
name: Build Jar | |
# Controls when the action will run. | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
# schedule: | |
# - cron: "0 0 * * */3" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
tags: | |
description: 'Test scenario tags' | |
env: | |
TZ: Asia/Shanghai | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
buildx: | |
runs-on: ${{ matrix.target.os }} | |
strategy: | |
matrix: | |
target: | |
- { os: ubuntu-22.04, arch: amd64, suffix: linux } | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v3 | |
- | |
name: Get current date | |
id: date | |
run: echo "::set-output name=today::$(date +'%Y%m%d')" | |
- | |
name: Installing Graalvm dependencies | |
run: sudo apt install -y make gcc libz-dev | |
if: matrix.target.suffix == 'linux' | |
- | |
name: Setup Graalvm | |
uses: graalvm/[email protected] | |
with: | |
version: '22.3.2' | |
java-version: '17' | |
components: 'native-image' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
cache: 'gradle' | |
- run: chmod +x ./gradlew | |
# Set VERSION_INFORMATION | |
- run: echo "VERSION_INFORMATION=$(${{github.workspace}}/gradlew --no-daemon -q ciPrintVersionInformation)" >> $GITHUB_ENV | |
- | |
name: Build project | |
run: ./gradlew --no-daemon :bootJar | |
- | |
name: Upload artifacts | |
uses: Wandalen/[email protected] | |
with: | |
action: bxb100/action-upload-webdav@v1 | |
with: | | |
webdav_address: ${{secrets.WEBDAV_ADDRESS}} | |
webdav_username: ${{secrets.WEBDAV_USERNAME}} | |
webdav_password: ${{secrets.WEBDAV_PASSWORD}} | |
webdav_upload_path: "/${{ env.VERSION_INFORMATION }}" | |
files: | | |
build/libs/aliyundrive-webdav-${{ env.VERSION_INFORMATION }}.jar | |
attempt_limit: 3 | |
attempt_delay: 0 |