Files
kiwixm/.github/workflows/build.yaml
ztimson 03c6b07abe
Some checks failed
Build Website / Tag Version (push) Has been cancelled
Build Website / Build & Push Dockerfile (push) Has been cancelled
Updated build steps
2025-09-27 00:42:48 -04:00

42 lines
1.0 KiB
YAML

name: Build Website
run-name: Build Website
on:
push:
jobs:
tag:
name: Tag Version
needs: build
runs-on: ubuntu-latest
container: node
steps:
- name: Clone Repository
uses: ztimson/actions/clone@develop
- name: Get Version Number
run: echo "VERSION=$(cat package.json | grep version | grep -Eo ':.+' | grep -Eo '[[:alnum:]\.\/\-]+')" >> $GITHUB_ENV
- name: Tag Version
uses: ztimson/actions/tag@develop
with:
tag: ${{env.VERSION}}
publish:
name: Build & Push Dockerfile
needs: build
uses: ztimson/actions/.github/workflows/docker.yaml@develop
with:
name: ztimson/kiwixm
repository: ${{github.server_url}}/${{github.repository}}.git
pass: ${{secrets.DEPLOY_TOKEN}}
publish-docker:
name: Build & Push Dockerfile
needs: build
uses: ztimson/actions/.github/workflows/docker.yaml@develop
with:
name: ztimson/kiwixm
repository: hub.docker.com
pass: ${{secrets.DOCKER_TOKEN}}