License list build a094ff6 using license list publisher 2.2.10 #338
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: Publish Preview | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Preview | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout-master | |
uses: actions/checkout@v2 | |
- name: enable-env | |
run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@3.5.9 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: website | |
CLEAN: true | |
- name: checkout-gh-pages | |
uses: actions/checkout@v2 | |
with: | |
ref: 'gh-pages' | |
- name: add-preview | |
uses: jacobtomlinson/gha-find-replace@master | |
with: | |
find: '>SPDX License List' | |
replace: '>PREVIEW - SPDX License List' | |
- name: fix-breadcrumbs | |
uses: jacobtomlinson/gha-find-replace@master | |
with: | |
find: '<a href="/">Home</a> » <a href="/licenses">Licenses</a>' | |
replace: '<a href="/license-list-data">Licenses</a>' | |
- uses: stefanzweifel/git-auto-commit-action@v4.4.1 | |
with: | |
commit_message: Update preview and breadcrumbs for github.io web pages |