Skip to content

Deploy and Minify

Deploy and Minify #4

Workflow file for this run

name: Deploy and Minify
permissions:
contents: write
on:
release:
branch: main
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout from main
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Add Version Numbers
uses: jacobtomlinson/gha-find-replace@v2
with:
find: "[-version-number-]"
replace: "${{github.ref_name}}"
exclude: "**/*.yml"
regex: false
- name: Commit to deployment
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Sync & minify '${{github.ref_name}}' from main
branch: deployed
skip_checkout: true
push_options: "--force"
commit_user_name: Sander Vonk
commit_user_email: sandervonk@users.noreply.github.com