Deploy and Minify #4
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: 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 |