Skip to content

smoother player animations #4

smoother player animations

smoother player animations #4

name: Release Simulator
on:
workflow_dispatch:
push:
branches: [main]
paths:
- "simulator/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
REGISTRY: ghcr.io
GITHUB_REPO: ${{ github.repository }}
jobs:
docker:
permissions:
contents: read
packages: write
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.GITHUB_REPO }}-simulator
tags: |
type=raw,value=latest
type=raw,value=stable,enable=${{ github.event_name == 'release' }}
type=semver,pattern={{version}},enable=${{ github.event_name == 'release' }}
type=sha,priority=250,enable=${{ github.event_name != 'release' }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: simulator
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}