Skip to content

fix d8 issue

fix d8 issue #21

Workflow file for this run

name: Commit Testing
on: [push]
jobs:
buildJar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up PATH
run: |
echo "${ANDROID_HOME}/build-tools/34.0.0" >> $GITHUB_PATH
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build mod jar
run: ./gradlew deploy
- name: Upload built jar file
uses: actions/upload-artifact@v2
with:
name: ${{ github.event.repository.name }}
path: build/libs/${{ github.event.repository.name }}.jar
- name: Make a tag name
if: github.ref == 'refs/heads/master'
run: |
echo "::set-output name=tag::$(date +%Y%m%d%H%M%S)"
id: tag_make
- name: Create blank release
if: github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
gh release create -t "FOS OST" "${{ steps.tag_make.outputs.tag }}"
- name: Add jar into release
uses: softprops/action-gh-release@v1
if: github.ref == 'refs/heads/master'
with:
tag_name: ${{ steps.tag_make.outputs.tag }}
files: build/libs/${{ github.event.repository.name }}.jar