Merge pull request #371 from agateau/fix-obscuring-areas #781
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
name: main | |
on: | |
pull_request: | |
push: | |
branches: | |
# Only build on push for master or dev, otherwise branches pushed for PR | |
# are built twice | |
- master | |
- dev | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pre-commit | |
run: pipx install pre-commit | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
sudo apt-get install -y gettext | |
- name: Run pre-commit | |
run: pre-commit run --all | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Build Docker image | |
run: ci/build-docker-image | |
shell: bash | |
- name: Build | |
shell: bash | |
run: ci/docker-build-game SNAPSHOT=1 | |
env: | |
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }} | |
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | |
KEYSTORE_KEY_ALIAS: ${{ secrets.KEYSTORE_KEY_ALIAS }} | |
KEYSTORE_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }} | |
- name: Smoke tests | |
uses: GabrielBB/xvfb-action@v1 | |
with: | |
run: make smoke-tests SNAPSHOT=1 | |
- name: Upload | |
# Do not upload for pull requests: `make upload` does not work without the upload secrets | |
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | |
run: make upload SNAPSHOT=1 | |
env: | |
UPLOAD_USERNAME: ${{ secrets.UPLOAD_USERNAME }} | |
UPLOAD_PRIVATE_KEY: ${{ secrets.UPLOAD_PRIVATE_KEY }} | |
UPLOAD_HOSTNAME: ${{ secrets.UPLOAD_HOSTNAME }} |