Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

🐛Update github action webdav provider #70

🐛Update github action webdav provider

🐛Update github action webdav provider #70

Workflow file for this run

# 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/setup-graalvm@v1
with:
java-version: '17'
distribution: 'graalvm'
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/wretry.action@master
with:
action: bxb100/action-upload@main
with: |
provider: webdav
provider_options: |
endpoint=${{secrets.WEBDAV_ADDRESS}}
username=${{secrets.WEBDAV_USERNAME}}
password=${{secrets.WEBDAV_PASSWORD}}
root=/${{ env.VERSION_INFORMATION }}/
include: 'build/libs/aliyundrive-webdav-${{ env.VERSION_INFORMATION }}.jar'
attempt_limit: 3
attempt_delay: 0