mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-13 03:03:33 +02:00
f4f19ea0e1
[why] I am sure I tested it and it worked. Well, it does not, it throws an error message Unrecognized named-value: 'secrets' [how] Secrets can not be used in the `if`, see https://github.com/actions/runner/issues/520 But they can be used in `env`, ... so do it there. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
29 lines
700 B
YAML
29 lines
700 B
YAML
name: Docker release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
# Keep this in line with .dockerignore
|
|
- bin/scripts/docker-entrypoint.sh
|
|
- bin/scripts/name_parser/Fontname*.py
|
|
- src/glyphs/**
|
|
- .dockerignore
|
|
- Dockerfile
|
|
- font-patcher
|
|
|
|
jobs:
|
|
publish-image:
|
|
name: Publish image
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.repository_owner == 'ryanoasis' }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Build image
|
|
run: docker build -t nerdfonts/patcher .
|
|
- name: Push image
|
|
run: |
|
|
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PAT }}
|
|
docker push nerdfonts/patcher
|