Skip to content

updated java repo

updated java repo #499

Workflow file for this run

name: build and distribute
on:
push:
paths-ignore:
- 'README.md'
- 'static/**'
release:
types: [published]
jobs:
build-n-publish:
name: Build
runs-on: ubuntu-18.04
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
# - uses: actions/checkout@v2
- name: Set up JDK 8 and
uses: actions/setup-java@v1
with:
java-version: '8.x' # The JDK version to make available on the path.
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64 # (x64 or x86) - defaults to x64
- name: Build microrts
run: bash build.sh
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: 1.1.7
- name: Build a source tarball
run: pip install poetry-dynamic-versioning && poetry install --no-dev && poetry build --format sdist
- name: Upload artifact to S3
uses: shallwefootball/s3-upload-action@master
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: microrts
source_dir: dist
destination_dir: /microrts/artifacts
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
run: poetry config pypi-token.pypi ${{ secrets.pypi_password }} && poetry publish