chore: update README.md #71
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: Bead Colors CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
with: | |
submodules: 'recursive' | |
- name: Test | |
uses: docker://golang:latest | |
with: | |
entrypoint: /bin/sh | |
args: | | |
-c "\ | |
cd generation/ && go test ./... | |
- name: Test Generation | |
uses: docker://golang:latest | |
with: | |
entrypoint: /bin/sh | |
args: | | |
-c "\ | |
cd generation/ && go run ./... ../raw ../gen | |
- name: Generation | |
uses: docker://golang:latest | |
if: "contains(github.ref, 'master') && !contains(toJSON(github.event.commits.*.msg), '[skip-ci]')" | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
entrypoint: /bin/sh | |
args: | | |
-c "\ | |
cd generation/ && \ | |
go run ./... ../raw ../gen && \ | |
cd .. && \ | |
git config --global --add safe.directory /github/workspace | |
git config --global user.email 'action@github.com' && \ | |
git config --global user.name 'GitHub Action' && \ | |
git add gen/ && \ | |
git commit --allow-empty -m 'chore(ci): update' -m '[skip-ci]' && \ | |
git push origin master" | |
- name: Bump version and push tag | |
id: tagging | |
uses: anothrNick/github-tag-action@master | |
if: "contains(github.ref, 'master') && !contains(toJSON(github.event.commits.*.msg), '[skip-ci]')" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true | |
- name: Publish to registry | |
if: "contains(github.ref, 'master') && !contains(toJSON(github.event.commits.*.msg), '[skip-ci]')" | |
uses: elgohr/Publish-Docker-Github-Action@master | |
with: | |
name: maxcleme/beadcolors | |
dockerfile: Dockerfile.website | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
tags: ${{ steps.tagging.outputs.new_tag }},latest |