Merge pull request #1 from theoware/patch-1

Improve the CI

Former-commit-id: a8c600e7050df8fe4a1ac5fbd07404814d44b7a7
This commit is contained in:
j-hc 2022-07-06 20:42:10 +03:00 committed by GitHub
commit 09c8d51e9d

View File

@ -8,8 +8,9 @@ jobs:
with:
distribution: "zulu"
java-version: "17"
- name: Checkout
uses: actions/checkout@v3
- run: |
git clone "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" .
./build-module.sh
- id: get_output_name
run: |
@ -18,7 +19,9 @@ jobs:
shell: bash
- name: Current Date
id: date
run: echo "::set-output name=DATE::$(date +'%m-%d')"
run: |
echo "::set-output name=DATE::$(date +'%m-%d')"
echo "::set-output name=YYYY::$(date +'%4Y')"
- name: Upload release
uses: svenstaro/upload-release-action@v2
with:
@ -27,5 +30,5 @@ jobs:
file: ${{ steps.get_output_name.outputs.OUTPUT }}
asset_name: ${{ steps.get_output_name.outputs.OUTPUT }}
release_name: ${{ steps.get_output_name.outputs.OUTPUT }}
tag: 2022-${{ steps.get_output_name.outputs.VERSION }}-${{ steps.date.outputs.DATE }}
tag: ${{ steps.date.outputs.YYYY }}-${{ steps.get_output_name.outputs.VERSION }}-${{ steps.date.outputs.DATE }}
overwrite: true