Skip to content

License list build 58b86f8 using license list publisher 2.2.10 #416

License list build 58b86f8 using license list publisher 2.2.10

License list build 58b86f8 using license list publisher 2.2.10 #416

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